Changeset 11911 for extensions/PiwigoLib/PiwigoWpf/DTO
- Timestamp:
- Aug 5, 2011, 5:00:07 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoWpf/DTO
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgCategoryListWPFHelper.cs
r7160 r11911 30 30 if (aPwgCategoryList != null) 31 31 { 32 foreach (PwgCategory pwgCat in aPwgCategoryList) 33 { 34 AddPwgCategoryToList(pwgCat, ref aPwgCategoryListWPF); 35 } 32 if (aPwgCategoryListWPF == null) 33 { 34 aPwgCategoryListWPF = new PwgCategoryListWPF(); 35 } 36 foreach (PwgCategory pwgCat in aPwgCategoryList) 37 { 38 AddPwgCategoryToList(pwgCat, ref aPwgCategoryListWPF); 39 } 36 40 } 37 41 } -
extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgSessionWPFHelper.cs
r7160 r11911 17 17 aPwgSessionWPF = new PwgSessionWPF(); 18 18 } 19 aPwgSession.UserName = aPwgSessionWPF.UserName; 20 aPwgSession.Status = aPwgSessionWPF.Status; 21 aPwgSession.Template = aPwgSessionWPF.Template; 22 aPwgSession.Theme = aPwgSessionWPF.Theme; 23 aPwgSession.CharSet = aPwgSessionWPF.CharSet; 19 aPwgSessionWPF.IsConnected = aPwgSession.IsConnected; 20 aPwgSessionWPF.UserName = aPwgSession.UserName; 21 aPwgSessionWPF.Status = aPwgSession.Status; 22 aPwgSessionWPF.Template = aPwgSession.Template; 23 aPwgSessionWPF.Theme = aPwgSession.Theme; 24 aPwgSessionWPF.CharSet = aPwgSession.CharSet; 24 25 } 25 26 } -
extensions/PiwigoLib/PiwigoWpf/DTO/PwgCategoryListWPF.cs
r7160 r11911 7 7 namespace Com.Piwigo.Wpf.DTO 8 8 { 9 public class PwgCategoryListWPF : ObservableCollection<PwgCategoryWPF>9 public class PwgCategoryListWPF : AsyncObservableCollection<PwgCategoryWPF> 10 10 { 11 11 } -
extensions/PiwigoLib/PiwigoWpf/DTO/PwgImageListWPF.cs
r7160 r11911 7 7 namespace Com.Piwigo.Wpf.DTO 8 8 { 9 public class PwgImageListWPF : ObservableCollection<PwgImageWPF>9 public class PwgImageListWPF : AsyncObservableCollection<PwgImageWPF> 10 10 { 11 11 } -
extensions/PiwigoLib/PiwigoWpf/DTO/PwgSessionWPF.cs
r7150 r11911 11 11 public class PwgSessionWPF: INotifyPropertyChanged 12 12 { 13 private Boolean _isConnected; 13 14 public Boolean IsConnected { 14 get { return this.Status != PwgSessionStatusEnum.Guest; } 15 get { return _isConnected; } 16 set { _isConnected = value; OnPropertyChanged("IsConnected"); } 15 17 } 16 18 … … 25 27 public String Password 26 28 { 27 set { _password = value; OnPropertyChanged("Password"); 29 set { _password = value; OnPropertyChanged("Password");} 28 30 get { return _password; } 29 31 } … … 32 34 public String ServeurName 33 35 { 34 set { _serverName = value; OnPropertyChanged("ServeurName"); 36 set { _serverName = value; OnPropertyChanged("ServeurName");} 35 37 get { return _serverName; } 36 38 } … … 46 48 public PwgSessionStatusEnum Status 47 49 { 48 set { _status = value; OnPropertyChanged("Status"); OnPropertyChanged("IsConnected");}50 set { _status = value; OnPropertyChanged("Status"); } 49 51 get { return _status; } 50 52 }
Note: See TracChangeset
for help on using the changeset viewer.