private void btn_Cancel_Click(object sender, EventArgs e) { Form_Admin f_admin = new Form_Admin(); this.Close(); f_admin.Show(); }
private void btn_SignUp_Click(object sender, EventArgs e) { if (txt_Username.Text == "Username") { txt_Username.Clear(); } if (txt_Password.Text == "Password") { txt_Password.Clear(); } if (!Check_Username(txt_Username.Text)) { pic_Username.Image = Properties.Resources.Red_Username; pic_Password.Image = Properties.Resources.Red_Password; return; } if (!Check_Password(txt_Password.Text)) { pic_Password.Image = Properties.Resources.Red_Password; return; } if (txt_Username.Text == "1" && txt_Password.Text == "1") { Form_Admin f_admin = new Form_Admin(); this.Hide(); f_admin.Show(); } if (txt_Username.Text == "2" && txt_Password.Text == "2") { Form_Staff f_staff = new Form_Staff(); this.Hide(); f_staff.Show(); } }