Ignore:
Timestamp:
Aug 4, 2011, 5:34:52 PM (13 years ago)
Author:
bayral
Message:

firsts steps of wpf client

File:
1 edited

Legend:

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

    r11904 r11905  
    1212    public sealed class PwgCmdConnect : PwgCmdBase
    1313    {
    14         public override bool CanExecute(object parameter)
    15         {
    16             Boolean retVal = false;
    17             if ( AppHelper.IsInDesignModeStatic == true)
    18             {
    19                 retVal = false;
    20             }
    21             else
    22             {
    23                 if ((PwgModelManager.Instance.Session != null)
    24                     & (PwgModelManager.Instance.Session.ServeurName != null))
    25                 {
    26                     retVal = !String.IsNullOrWhiteSpace(PwgModelManager.Instance.Session.ServeurName);
    27                 }
    28             }
    29             return (retVal);
    30         }
    31 
    3214        public override void Execute(object parameter)
    3315        {
    3416            try {
     17                IsRunning = true;
    3518                Uri uriServer = new Uri(PwgModelManager.Instance.Session.ServeurName);
    3619
     
    4326                PwgSessionWPFHelper.AddPwgSessionInfoToPwgSessionWPF(sess, ref sesWPF);
    4427
    45                 List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(null, false, (PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest));
     28                List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(null, false, null); //(PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest)
    4629                PwgCategoryListWPF lstCatWPF = PwgModelManager.Instance.CategoryList;
    4730
     
    4932
    5033                ImageCacheManager.Instance.SetCurrentServer(uriServer.AbsoluteUri);
     34                IsRunning = false;
    5135            }
    5236            catch (PwgServiceException ex)
Note: See TracChangeset for help on using the changeset viewer.