/// <summary> /// Handles the signout. /// </summary> /// <returns>The signout.</returns> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> public async void HandleSignout(object sender, EventArgs e) { bool accepted = await ShowAlert("Chat", "Would you like to signout?"); if (accepted) { _presenter.Signout(); } }
/// <summary> /// Ons the back pressed. /// </summary> /// <returns>The back pressed.</returns> public override void OnBackPressed() { //Put up the Yes/No message box AlertDialog.Builder builder = new AlertDialog.Builder(this); builder .SetTitle("Chat") .SetMessage("Would you like to signout?") .SetNegativeButton("No", (sender, e) => { }) .SetPositiveButton("Yes", (sender, e) => { _presenter.Signout(); }) .Show(); }