void btnCancel_Clicked(MouseButtons arg1, float arg2, float arg3) { if (arg1 == MouseButtons.Left) { TingSound.Play(); MessageBox.ShowYesNo("You really want to exit?", msgBoxResult); } }
void msgBoxResult(int result) { TingSound.Play(); if (result == 1) { ROClient.Singleton.Exit(); } }
void btnOK_Clicked(MouseButtons arg1, float arg2, float arg3) { if (arg1 == MouseButtons.Left) { TingSound.Play(); if (ServerSelected != null) { ServerSelected((CharServerInfo)lstServices.Items[lstServices.SelectedIndex]); } this.Close(); } }
void btnCancel_Clicked(MouseButtons arg1, float arg2, float arg3) { if (arg1 == MouseButtons.Left) { TingSound.Play(); if (GoBack != null) { GoBack(); } this.Close(); } }
public override void OnKeyDown(Microsoft.Xna.Framework.Input.Keys key) { if (key == Microsoft.Xna.Framework.Input.Keys.Enter) { TingSound.Play(); if (DoLogin != null) { DoLogin(txtLogin.Text, txtPassword.Text); } this.Close(); } base.OnKeyDown(key); }
public override void OnKeyDown(Microsoft.Xna.Framework.Input.Keys key) { if (key == Microsoft.Xna.Framework.Input.Keys.Enter) { if (lstServices.SelectedIndex >= 0 && lstServices.SelectedIndex < lstServices.Items.Count) { TingSound.Play(); if (ServerSelected != null) { ServerSelected((ServerInfo)lstServices.Items[lstServices.SelectedIndex]); } this.Close(); } } base.OnKeyDown(key); }
void btnOK_Clicked(MouseButtons arg1, float arg2, float arg3) { if (arg1 == MouseButtons.Left) { TingSound.Play(); if (ckSave.Checked) { SharedInformation.Config.SaveLast = true; SharedInformation.Config.LastLogin = txtLogin.Text; } if (DoLogin != null) { DoLogin(txtLogin.Text, txtPassword.Text); } this.Close(); } }