프로젝트

일반

사용자정보

개정판 992a98b4

ID992a98b41d05f5b432e804b9de8af6bcfb3f8170
상위 eb2b9248
하위 32e95118

KangIngu 이(가) 6년 이상 전에 추가함

효성 테스트내용 오류 수정 및 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

클립보드 이미지 추가 (최대 크기: 500 MB)