public async Task ExecuteLoadSeedDataCommand()
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            if (!_DataClient.IsSeeded)
            {
                await _DataClient.SeedLocalDataAsync();
            }

            Leads = (await _DataClient.GetAccountsAsync(true)).ToObservableCollection();

            IsInitialized = true;
            IsBusy        = false;
        }
Exemplo n.º 2
0
        async Task ExecuteLoadAccountsCommand()
        {
            IsBusy = true;
            LoadAccountsCommand.ChangeCanExecute();

            Accounts = (await _DataClient.GetAccountsAsync(false)).ToObservableCollection();

            IsBusy = false;
            LoadAccountsCommand.ChangeCanExecute();
        }