protected AsyncLoadCommand(ILoadableViewModel viewModel, IAuthenticationService authenticationService) { _authenticationService = authenticationService; _viewModel = viewModel; viewModel.IsLoaded = false; viewModel.IsEmpty = true; }
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()); }); }
protected LoadAsyncCommand(ILoadableViewModel viewModel) { _viewModel = viewModel; viewModel.IsLoaded = false; viewModel.IsEmpty = false; }