public void OnClick(object sender, DialogClickEventArgs args) { ((AlertDialog)sender).Dismiss(); Environment.Exit(1); }