Ignore:
Timestamp:
Oct 3, 2011, 5:09:51 PM (13 years ago)
Author:
bayral
Message:

rename category to Albums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoUpload/Service/Connect.cs

    r12262 r12336  
    2222            try
    2323            {
    24                 List<PwgCategory> lstPCat  = null;
     24                List<PwgAlbum> lstPCat  = null;
    2525                ModelManager.Instance.sess = PwgServiceProvider.Instance.PwgSessionService.Login( ModelManager.Instance.userName,  ModelManager.Instance.password);
    2626                ModelManager.Instance.isConnected = true;
     
    2828                System.Diagnostics.Debug.WriteLine("user : " + ModelManager.Instance.sess.UserName + " " + ModelManager.Instance.sess.Status);
    2929
    30                 lstPCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(PwgCategory.RootCategoryId, true,null);
     30                lstPCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfAlbum(PwgAlbum.RootAlbumId, true,null);
    3131
    3232                ModelManager.Instance.resetLstCat();
    3333
    34                 foreach (PwgCategory item in lstPCat)
     34                foreach (PwgAlbum item in lstPCat)
    3535                {
    36                     ModelManager.Instance.lstCat.Add(new SelectedCategoryListItem() { ShowedValue = (String.IsNullOrWhiteSpace(item.Name) ? "album " + item.Id : item.Name), Id = item.Id, Data = item, isSelected = false });
     36                    ModelManager.Instance.lstCat.Add(new SelectedAlbumListItem() { ShowedValue = (String.IsNullOrWhiteSpace(item.Name) ? "album " + item.Id : item.Name), Id = item.Id, Data = item, isSelected = false });
    3737                }
    3838
Note: See TracChangeset for help on using the changeset viewer.