public async Task LoadEditor(string url) { await ThreadUI.Invoke(() => IsBusy = true); await Task.Run(async() => await FormFetcher.GetEditor(url)); await ThreadUI.Invoke(() => { IsBusy = false; }); }
public async Task LoadEditor(EditorPackage package) { await ThreadUI.Invoke(() => IsBusy = true); await Task.Run(async() => await FormFetcher.GetEditor(package)); await ThreadUI.Invoke(() => { IsBusy = false; RaisePropertyChanged(nameof(IsEditUIVisible)); }); }
public async Task LoadEditor(EditorPackage package) { await ThreadUI.Invoke(() => IsBusy = true); await Task.Run(async() => await FormFetcher.GetEditor(package)); await ThreadUI.Invoke(() => { IsBusy = false; RaisePropertyChanged(nameof(IsEditUIVisible)); if (package.Intent == EditorIntent.MultiQuote) { Loc.NavigationService.GoBack(); } }); }