Ignore:
Timestamp:
Aug 12, 2011, 4:32:33 PM (13 years ago)
Author:
bayral
Message:

root category handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdConnect.cs

    r11922 r11935  
    3636                PwgSessionWPFHelper.AddPwgSessionInfoToPwgSessionWPF(sess, ref sesWPF);
    3737
    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();
    4039
    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;
    4245
    4346                SendUiInfo("Setting up cache data ...");
Note: See TracChangeset for help on using the changeset viewer.