Changeset 12262 for extensions/PiwigoLib/PiwigoUpload/DTO
- Timestamp:
- Sep 29, 2011, 5:38:55 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoUpload/DTO
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoUpload/DTO/ModelManager.cs
r12256 r12262 29 29 public PwgSession sess { get; set; } 30 30 public SelectedPwgCategoryList lstCat { get; set; } 31 public Int32 PwgCategoryIdSelected { get; set; } 32 public LocalAlbumList lstAlbumLocaux { get; set; } 31 33 public Boolean isConnected { get; set; } 32 34 public String directoryName { get; set; } … … 34 36 public String userName { get; set; } 35 37 public String password { get; set; } 38 39 public ModelManagerBase() 40 { 41 lstCat = new SelectedPwgCategoryList(); 42 lstAlbumLocaux = new LocalAlbumList(); 43 isConnected = false; 44 } 45 46 internal void resetLstCat() 47 { 48 if (lstCat == null) 49 { 50 lstCat = new SelectedPwgCategoryList(); 51 } 52 else 53 { 54 lstCat.Clear(); 55 } 56 lstCat.Add(new SelectedCategoryListItem() { Id = PwgCategory.RootCategoryId, ShowedValue = "Root album", Data=null, isSelected=true }); 57 } 36 58 } 37 59 } -
extensions/PiwigoLib/PiwigoUpload/DTO/SelectedList.cs
r12256 r12262 1 1 using System; 2 using System.Collections.Generic;3 using System.Linq;4 using System.Text;5 2 using Com.Piwigo.Lib.DTO; 3 using System.ComponentModel; 6 4 7 5 namespace Com.Piwigo.Uploader.DTO 8 6 { 9 public class SelectedListItem<T >7 public class SelectedListItem<T,Tid> 10 8 { 11 9 public String ShowedValue { get;set;} 12 public object Id{ get;set;}10 public Tid Id { get;set;} 13 11 public Boolean isSelected { get;set;} 14 12 public T Data { get;set;} 13 14 public SelectedListItem() 15 { } 15 16 } 16 17 17 public class SelectedPwgCategoryList : List<SelectedListItem<PwgCategory>> 18 public sealed class SelectedCategoryListItem : SelectedListItem<PwgCategory, Int32> 19 { 20 public SelectedCategoryListItem() 21 { } 22 } 23 24 public sealed class SelectedPwgCategoryList : BindingList<SelectedCategoryListItem> 18 25 { 19 26 }
Note: See TracChangeset
for help on using the changeset viewer.