private void button1_Click(object sender, EventArgs e) { txtOops.Visible = true; this.Hide(); View.MainMenu mainMenu = new View.MainMenu(); mainMenu.Show(); }
private void ProcessLogin() { var loginUsername = txtUsername.Text; var loginPassword = txtPassword.Text; if (system.Login(loginUsername, loginPassword)) { this.Hide(); View.MainMenu mainMenu = new View.MainMenu(); mainMenu.Show(); } else { txtPassword.Text = ""; txtPassword.Focus(); txtOops.Visible = true; } }