개정판 69f41aab
issue #1180: Image URL 설정 - Image URI를 가져오는 부분을 하나의 함수로 만듦
Change-Id: I2d13cc6156627af2e00b9557939973a7d94d04d2
KCOM/Controls/PageNavigator.xaml.cs | ||
---|---|---|
72 | 72 |
this._PageList = PageList; |
73 | 73 |
this._DefaultUri = DefaultUri; |
74 | 74 |
ThumbnailSet(); |
75 |
//ThumbNmailSet(); |
|
76 |
//rdoAllPages.Checked += new RoutedEventHandler(rdoCommented_Checked); |
|
77 |
//rdoFavoritePages.Checked += new RoutedEventHandler(rdoFavoritePages_Checked); |
|
78 |
//expCommentPages.PreviewCollapsed += new RadRoutedEventHandler(expCommentPages_PreviewCollapsed); |
|
79 |
//expCommentPages.PreviewExpanded += new RadRoutedEventHandler(expCommentPages_PreviewExpanded); |
|
80 | 75 |
} |
81 | 76 |
private void ImgListbox_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) |
82 | 77 |
{ |
... | ... | |
141 | 136 |
|
142 | 137 |
this._thumbnailItems = new ObservableCollection<ThumbnailItem>(); |
143 | 138 |
|
144 |
//if (this.lstSelectComment.ItemsSource != null) |
|
145 |
//{ |
|
146 |
// var _pages = from commentPage in this.lstSelectComment.ItemsSource.Cast<UsersCommentPagesMember>() |
|
147 |
// where commentPage.IsSelected == true |
|
148 |
// select commentPage.PageNumber; |
|
149 |
|
|
150 |
// foreach (var item in _pages) |
|
151 |
// { |
|
152 |
// item.ForEach(pp => _selectComment.Add(pp)); |
|
153 |
// } |
|
154 |
|
|
155 |
// _selectComment.Distinct(); |
|
156 |
//} |
|
157 |
|
|
158 | 139 |
var uri = _DefaultUri.Replace("{0}/{1}_{2}", "8/0_0"); |
159 | 140 |
this._PageList = this._PageList.OrderBy(data => data.PAGE_NUMBER).ToList(); |
160 | 141 |
this._PageList.ForEach(page => |
161 | 142 |
{ |
162 | 143 |
var _pageNo = page.PAGE_NUMBER; |
163 |
bool _addFlag = false; |
|
164 |
|
|
165 | 144 |
|
166 | 145 |
this._thumbnailItems.Add(new ThumbnailItem |
167 | 146 |
{ |
168 | 147 |
ImageUri = new Uri(uri.Replace("{PageNo}", _pageNo.ToString())), |
169 |
|
|
170 |
//ImageUri = new Uri(@"http://www.honeyhead.net/Pages/000000/111111/11111111/1.cmp"), |
|
171 |
|
|
172 |
//ImageUri = new Uri(@"https://image.freepik.com/free-vector/abstract-logo-in-flame-shape_1043-44.jpg"), |
|
173 |
|
|
174 |
|
|
175 | 148 |
PageNumber = Convert.ToInt32(_pageNo), |
176 | 149 |
Angle = Convert.ToInt32(page.PAGE_ANGLE), |
177 | 150 |
}); |
내보내기 Unified diff