public OkDialog(string message) { InitializeComponent(); _message = message; this.btnOk.Clicked += (sender, arg) => { Proccess.SetResult(true); _popupNavigation.PopAsync(); }; }
public ConfirmationDialog(string message) { InitializeComponent(); _message = message; OnApearing = () => { this.btnNo.Text = NoButtonText; this.btnYes.Text = YesButtonText; }; this.btnNo.Clicked += (sender, args) => { Proccess.SetResult(false); }; this.btnYes.Clicked += (sender, args) => { Proccess.SetResult(true); }; }