개정판 992a98b4
효성 테스트내용 오류 수정 및 Search, Favorite 추가
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
18 | 18 |
/// </summary> |
19 | 19 |
public partial class Sample : UserControl, INotifyPropertyChanged |
20 | 20 |
{ |
21 |
public List<FAVORITE_DOC> _FavoriteSet { get; set; } |
|
21 | 22 |
public event PropertyChangedEventHandler PropertyChanged; |
22 | 23 |
public Sample() |
23 | 24 |
{ |
... | ... | |
95 | 96 |
|
96 | 97 |
void rdoFavoritePages_Checked(object sender, RoutedEventArgs e) |
97 | 98 |
{ |
98 |
//if (rdoFavoritePages.IsChecked == true) |
|
99 |
// expCommentPages.IsExpanded = false; |
|
100 |
|
|
101 |
//if (_FavoriteSet.Count > 0) |
|
102 |
//{ |
|
103 |
// SetCommentPages_Favorite(); //수정 |
|
104 |
//} |
|
105 |
//else |
|
106 |
//{ |
|
107 |
// rdoAllPages.IsChecked = true; |
|
108 |
// rdoFavoritePages.IsChecked = false; |
|
109 |
//} |
|
99 |
if (rdoFavoritePages.IsChecked == true) |
|
100 |
expCommentPages.IsExpanded = false; |
|
101 |
|
|
102 |
_FavoriteSet = _FavoriteSet == null ? new List<FAVORITE_DOC>() : _FavoriteSet; |
|
103 |
if (_FavoriteSet.Count > 0) |
|
104 |
{ |
|
105 |
SetCommentPages_Favorite(); //수정 |
|
106 |
} |
|
107 |
else |
|
108 |
{ |
|
109 |
rdoAllPages.IsChecked = true; |
|
110 |
rdoFavoritePages.IsChecked = false; |
|
111 |
} |
|
112 |
} |
|
113 |
|
|
114 |
private void SetCommentPages_Favorite() |
|
115 |
{ |
|
116 |
ThumbnailSet(); |
|
117 |
//_UsersCommentPagesList |
|
118 |
//var result = (from A in _UsersCommentPagesList |
|
119 |
// from B in _FavoriteSet |
|
120 |
// where A.PageNumber.Contains(B.PageNo) |
|
121 |
// select A).ToList(); |
|
122 |
//_UsersCommentPagesList = result; |
|
123 |
|
|
124 |
SetCommentPages(); |
|
125 |
|
|
110 | 126 |
} |
127 |
|
|
111 | 128 |
void expCommentPages_PreviewCollapsed(object sender, Telerik.Windows.RadRoutedEventArgs e) |
112 | 129 |
{ |
113 | 130 |
//txtThumbCount.Visibility = Visibility.Collapsed; |
... | ... | |
409 | 426 |
} |
410 | 427 |
else |
411 | 428 |
{ |
412 |
//if ((rdoFavoritePages.IsChecked == true) && _FavoriteSet.Where(data => data.PageNo == _pageNo).FirstOrDefault() != null)
|
|
413 |
//{
|
|
414 |
// this._thumbnailItems.Add(new ThumbnailItem
|
|
415 |
// {
|
|
416 |
// ImageUri = new Uri(uri.Replace("{PageNo}", _pageNo.ToString())),
|
|
417 |
// PageNumber = _pageNo,
|
|
418 |
// Angle = page.PAGE_ANGLE,
|
|
419 |
// });
|
|
420 |
//}
|
|
429 |
if ((rdoFavoritePages.IsChecked == true) && _FavoriteSet.Where(data => data.PAGE_NO == _pageNo).FirstOrDefault() != null)
|
|
430 |
{ |
|
431 |
this._thumbnailItems.Add(new ThumbnailItem |
|
432 |
{ |
|
433 |
ImageUri = new Uri(uri.Replace("{PageNo}", _pageNo.ToString())), |
|
434 |
PageNumber = _pageNo, |
|
435 |
Angle = page.PAGE_ANGLE, |
|
436 |
}); |
|
437 |
} |
|
421 | 438 |
} |
422 | 439 |
|
423 | 440 |
|
내보내기 Unified diff