public async Task RemoveQuoteFromMultiQuote(EditorPackage package) { if (string.IsNullOrEmpty(MultiQuoteTemporaryContent)) { return; } var quote = await FormFetcher.FetchMessageContent(package); Loc.Editor.MultiQuoteTemporaryContent = Loc.Editor.MultiQuoteTemporaryContent.Replace(quote, "").Replace(Environment.NewLine, ""); }
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(); } }); }