private void BackBtn_Click(object sender, EventArgs e) { Receptionist bl = new Receptionist(); this.Hide(); bl.Show(); }
private void button4_Click(object sender, EventArgs e) { Receptionist r = new Receptionist(); this.Hide(); r.Show(); }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "user") { if (IsvalidUser(textBox1.Text, textBox2.Text)) { Receptionist r = new Receptionist(); this.Hide(); r.Show(); } else { MessageBox.Show("UserName and password do not match"); } } else { if (IsvalidUser(textBox1.Text, textBox2.Text)) { Admin ad = new Admin(); this.Hide(); ad.Show(); } else { MessageBox.Show("UserName and password do not match"); } } }