private void btnLogin_Click(object sender, EventArgs e) { ForceToClose(); HaspoLogin hln = new HaspoLogin(); this.Hide(); hln.ShowDialog(); this.Close(); }
private void Haspo_MainMenu_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.F1) { this.Close(); } else if (e.KeyData == Keys.F12) { ForceToClose(); HaspoLogin hln = new HaspoLogin(); this.Hide(); hln.ShowDialog(); this.Close(); } }