private void closeToolStripMenuItem_Click(object sender, EventArgs e) { //START SHOW ADD CLIENT FORM admin admin = new admin(); admin.Show(); this.Hide(); //END SHOW ADD CLIENT FORM }
private void button1_Click(object sender, EventArgs e) { if (validUser(textBoxUsername.Text, textBoxPassword.Text)) { Properties.Settings.Default.username = textBoxUsername.Text; //START SHOW ADMIN FORM admin frm = new admin(); frm.Show(); //END SHOW ADMIN FORM this.Hide(); } else { MessageBox.Show("Incorrect Username or Password, Please Try Again"); } }
private void closeToolStripMenuItem_Click(object sender, EventArgs e) { //START SHOW SIGN IN FORM admin admin = new admin(); admin.Show(); //END SHOW SIGN IN FORM this.Close(); }