Changeset 11935 for extensions/PiwigoLib/PiwigoWpf/Command
- Timestamp:
- Aug 12, 2011, 4:32:33 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoWpf/Command
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdConnect.cs
r11922 r11935 36 36 PwgSessionWPFHelper.AddPwgSessionInfoToPwgSessionWPF(sess, ref sesWPF); 37 37 38 List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(null, false, null); //(PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest) 39 PwgCategoryListWPF lstCatWPF = PwgModelManager.Instance.CategoryList; 38 PwgCategoryListWPFHelper.InitRootCategory(); 40 39 41 PwgCategoryListWPFHelper.ConvertPwgCategoryListToPwgCategoryListWPF(lstCat, ref lstCatWPF); 40 List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(null, null, null); //(PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest) 41 PwgRootCategoryWPF aRootCatWPF = PwgModelManager.Instance.RootCategoryList; 42 43 PwgCategoryListWPFHelper.ConvertPwgCategoryListToPwgRootCategoryWPF(lstCat, ref aRootCatWPF); 44 aRootCatWPF.IsExpanded = true; 42 45 43 46 SendUiInfo("Setting up cache data ..."); -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdDisconnect.cs
r11922 r11935 32 32 } 33 33 34 if ((PwgModelManager.Instance.CategoryList != null) 35 && (PwgModelManager.Instance.RootCategoryList != null)) 36 { 37 PwgModelManager.Instance.RootCategoryList.Childrens.Clear(); 38 } 39 34 40 if (PwgModelManager.Instance.CategoryList != null) 35 41 { -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdGetImageforCategory.cs
r11922 r11935 28 28 PwgImageListWPF lstImgWPF = PwgModelManager.Instance.ImageList; 29 29 SendUiInfo("Removing image..."); 30 PwgModelManager.Instance.ImageShown = null; 30 31 if (lstImgWPF != null) 31 32 { -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdProvider.cs
r11922 r11935 24 24 objICom = PwgCmdGetImageforCategory; 25 25 break; 26 case "PwgCmdGetSubCategorieforCategory": 27 objICom = PwgCmdGetSubCategorieforCategory; 28 break; 26 29 default: 27 objICom = null; 28 break; 30 throw new ArgumentException("AsyncCommand GetByType : Command Type unknow.", "Type"); 29 31 } 30 32 … … 70 72 } 71 73 } 74 75 public static AsyncCommand _pwgCmdGetSubCategorieforCategory; 76 public static AsyncCommand PwgCmdGetSubCategorieforCategory 77 { 78 get 79 { 80 if (_pwgCmdGetSubCategorieforCategory == null) 81 { 82 _pwgCmdGetSubCategorieforCategory = new PwgCmdGetSubCategorieforCategory(); 83 } 84 return _pwgCmdGetSubCategorieforCategory; 85 } 86 } 87 72 88 } 73 89 }
Note: See TracChangeset
for help on using the changeset viewer.