Example #1
0
 /// <summary>
 /// Confirm exit from app
 /// </summary>
 public override void OnBackPressed()
 {
     new AlertDialog.Builder(this).SetMessage("Close application?").SetPositiveButton("Yes", (s, e) =>
     {
         BackButton.FireBackButtonCall();
         Process.KillProcess(Process.MyPid());
     }).SetNegativeButton("No", (s, e) => { }).Show();
 }
Example #2
0
 public BackButton()
 {
     //мега костыль =)
     Current = this;
 }