Ignore:
Timestamp:
Aug 4, 2011, 5:34:52 PM (13 years ago)
Author:
bayral
Message:

firsts steps of wpf client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoWpf/DTO/PwgModelManager.cs

    r11904 r11905  
    33using System.Linq;
    44using System.Text;
     5using System.ComponentModel;
    56
    67namespace Com.Piwigo.Wpf.DTO
     
    2627        public class PwgModelManagerBase
    2728        {
    28             public PwgImageListWPF ImageList { get; set; }
    29             public PwgSessionWPF Session { get; set; }
    30             public PwgCategoryListWPF CategoryList { get; set; }
     29            private PwgImageListWPF _imageList;
     30            public PwgImageListWPF ImageList
     31            {
     32                set { _imageList = value; OnPropertyChanged("ImageList"); }
     33                get { return _imageList; }
     34            }
     35
     36            private PwgSessionWPF _session;
     37            public PwgSessionWPF Session
     38            {
     39                set { _session = value; OnPropertyChanged("Session"); }
     40                get { return _session; }
     41            }
     42
     43            private PwgCategoryListWPF _categoryList;
     44            public PwgCategoryListWPF CategoryList
     45            {
     46                set { _categoryList = value; OnPropertyChanged("CategoryList"); }
     47                get { return _categoryList; }
     48            }
     49
     50            public event PropertyChangedEventHandler PropertyChanged;
     51            private void OnPropertyChanged(String info)
     52            {
     53                if (PropertyChanged != null)
     54                    PropertyChanged(this, new PropertyChangedEventArgs(info));
     55            }
    3156        }
    3257
     58       
    3359    }
    3460}
Note: See TracChangeset for help on using the changeset viewer.