protected async override void ShowOutcomeText(OutcomeTextViewModel text) { try { var dialog = new ContentDialog() { Content = new OuputText() { BindingContext = text, } }; dialog.AddButton(new ContentDialogButton() { Icon = Icons.TimesCircleRegular, Color = Color.White, Result = AddEditItemResult.Cancel, IsBack = true, }); dialog.Show(); await dialog.Wait(); await Navigation.PopModalAsync(); } catch (Exception e) { HandleError(e); } }
protected override async void ShowOutcomeText(OutcomeTextViewModel text) { OutcomeTextDialog dialog = new OutcomeTextDialog() { DataContext = text, }; await dialog.ShowAsync(); }
public bool Read(OutcomeTextOutput message) { OutcomeTextViewModel text = new OutcomeTextViewModel(message); ShowOutcomeText(text); return(true); }
protected virtual void ShowOutcomeText(OutcomeTextViewModel text) { }