protected AsyncLoadCommand(ILoadableViewModel viewModel, IAuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
     _viewModel             = viewModel;
     viewModel.IsLoaded     = false;
     viewModel.IsEmpty      = true;
 }
Example #2
0
 public static void SetupLoadingCommands(this ILoadableViewModel vm)
 {
     vm.LoadingCommands.Select(x => x.IsExecuting).Merge().Subscribe(_ =>
     {
         vm.IsLoading = vm.LoadingCommands.Any(x => x.IsExecuting.FirstAsync().Wait());
     });
 }
Example #3
0
 protected LoadAsyncCommand(ILoadableViewModel viewModel)
 {
     _viewModel         = viewModel;
     viewModel.IsLoaded = false;
     viewModel.IsEmpty  = false;
 }