public static void InvokeBusy(ICommand command, IBusyScope busyScope, 
     Action<Exception> onCompleted = null)
 {
     busyScope.IsBusy = true;
     Invoke(command, exception =>
                         {
                             busyScope.IsBusy = false;
                             if (onCompleted != null)
                                 onCompleted(exception);
                         });
 }
 public static void InvokeBusy(ICommand command, IBusyScope busyScope,
                               Action <Exception> onCompleted = null)
 {
     busyScope.IsBusy = true;
     Invoke(command, exception =>
     {
         busyScope.IsBusy = false;
         if (onCompleted != null)
         {
             onCompleted(exception);
         }
     });
 }
Пример #3
0
 public Search(
     ILocationProvider locationProvider,
     ISearchingManager searchingManager,
     CurrentContext currentContext,
     INavigationService navigationService,
     MainPageViewModel mainPageViewModel)
 {
     _locationProvider = locationProvider;
     _searchingManager = searchingManager;
     _currentContext = currentContext;
     _navigationService = navigationService;
     _mainPageViewModel = mainPageViewModel;
 }
 public BusyCommandResult(ICommand command, 
     IBusyScope busyScope)
 {
     _command = command;
     _busyScope = busyScope;
 }
 public BusyCommandResult(ICommand command,
                          IBusyScope busyScope)
 {
     _command   = command;
     _busyScope = busyScope;
 }
Пример #6
0
        public BusyArea(IBusyScope busyScope)
        {
            _busyScope = busyScope;

            _busyScope.IsBusy = true;
        }