Changeset 12407 for extensions/PiwigoLib/PiwigoUpload/DTO
- Timestamp:
- Oct 11, 2011, 5:04:21 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoUpload/DTO
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoUpload/DTO/LocalAlbumList.cs
r12262 r12407 10 10 {} 11 11 12 public class LocalAlbum 12 public class LocalAlbum : INotifyPropertyChanged 13 13 { 14 14 private Int32? _id; -
extensions/PiwigoLib/PiwigoUpload/DTO/LocalPwgImage.cs
r12336 r12407 11 11 {} 12 12 13 public class LocalImage 13 public class LocalImage : INotifyPropertyChanged 14 14 { 15 15 //FileInfo highResFile, FileInfo lowResFile, FileInfo thumbFile, String imageName, String imageAuthor, DateTime creationDate, … … 23 23 } 24 24 25 private String _author;25 private String _author; 26 26 public String Author 27 27 { -
extensions/PiwigoLib/PiwigoUpload/DTO/ModelManager.cs
r12336 r12407 25 25 } 26 26 27 public class ModelManagerBase 27 public class ModelManagerBase : INotifyPropertyChanged 28 28 { 29 public PwgSession sess { get; set; } 30 public SelectedPwgAlbumList lstCat { get; set; } 31 public Int32 PwgAlbumIdSelected { get; set; } 32 public LocalAlbumList lstAlbumLocaux { get; set; } 33 public Boolean isConnected { get; set; } 34 public String directoryName { get; set; } 35 public Uri serveurName { get; set; } 36 public String userName { get; set; } 37 public String password { get; set; } 29 private PwgSession _sess; 30 public PwgSession sess { 31 get { 32 return _sess; 33 } 34 set { 35 _sess = value; 36 OnPropertyChanged("sess"); 37 } 38 } 39 40 private SelectedPwgAlbumList _lstCat; 41 public SelectedPwgAlbumList lstCat { 42 get { 43 return _lstCat; 44 } 45 set { 46 _lstCat = value; 47 OnPropertyChanged("lstCat"); 48 } 49 } 50 51 private Int32 _PwgAlbumIdSelected; 52 public Int32 PwgAlbumIdSelected { 53 get 54 { 55 return _PwgAlbumIdSelected; 56 } 57 set { 58 _PwgAlbumIdSelected = value; 59 OnPropertyChanged("PwgAlbumIdSelected"); 60 } 61 } 62 63 private LocalAlbumList _lstAlbumLocaux; 64 public LocalAlbumList lstAlbumLocaux { 65 get{ 66 return _lstAlbumLocaux; 67 } 68 set { 69 _lstAlbumLocaux = value; 70 OnPropertyChanged("lstAlbumLocaux"); 71 } 72 } 73 74 private LocalAlbum _AlbumEdited; 75 public LocalAlbum AlbumEdited { 76 get { 77 return _AlbumEdited; 78 } 79 set { 80 _AlbumEdited = value; 81 OnPropertyChanged("AlbumEdited"); 82 } 83 } 84 85 private LocalImage _ImageEdited; 86 public LocalImage ImageEdited { 87 get{ 88 return _ImageEdited; 89 } 90 set { 91 _ImageEdited = value; 92 OnPropertyChanged("ImageEdited"); 93 } 94 } 95 96 private Boolean _isConnected; 97 public Boolean isConnected { 98 get { 99 return _isConnected; 100 } 101 set { 102 _isConnected = value; 103 OnPropertyChanged("isConnected"); 104 } 105 } 106 107 private String _directoryName; 108 public String directoryName { 109 get{ 110 return _directoryName; 111 } 112 set { 113 _directoryName = value; 114 OnPropertyChanged("directoryName"); 115 } 116 } 117 118 private Uri _serveurName; 119 public Uri serveurName { 120 get{ 121 return _serveurName; 122 } 123 set { 124 _serveurName = value; 125 OnPropertyChanged("serveurName"); 126 } 127 } 128 129 private String _userName; 130 public String userName { 131 get{ 132 return _userName; 133 } 134 set { 135 _userName = value; 136 OnPropertyChanged("userName"); 137 } 138 } 139 140 private String _password; 141 public String password { 142 get { 143 return _password; 144 } 145 set { 146 _password = value; 147 OnPropertyChanged("password"); 148 } 149 } 38 150 39 151 public ModelManagerBase() … … 42 154 lstAlbumLocaux = new LocalAlbumList(); 43 155 isConnected = false; 156 157 AlbumEdited = new LocalAlbum(); 158 ImageEdited = new LocalImage(); 44 159 } 45 160 … … 56 171 lstCat.Add(new SelectedAlbumListItem() { Id = PwgAlbum.RootAlbumId, ShowedValue = "Root album", Data=null, isSelected=true }); 57 172 } 173 174 public event PropertyChangedEventHandler PropertyChanged; 175 protected void OnPropertyChanged(String info) 176 { 177 if (PropertyChanged != null) 178 PropertyChanged(this, new PropertyChangedEventArgs(info)); 179 } 58 180 } 59 181 }
Note: See TracChangeset
for help on using the changeset viewer.