private void BackBtn_Click(object sender, EventArgs e) { this.Hide(); InstructorMain f8 = new InstructorMain(); f8.Show(); }
private void Back_btn_Click(object sender, EventArgs e) { Hide(); InstructorMain sm = new InstructorMain(); sm.Show(); }
private void backBTN_Click(object sender, EventArgs e) { this.Hide(); InstructorMain f4 = new InstructorMain(); f4.Show(); }
private void button1_Click(object sender, EventArgs e) { studentMain st = new studentMain(); InstructorMain ins = new InstructorMain(); ManagerMain ma = new ManagerMain(); string path; int flag = 0; string un = textBoxun.Text; string ps = textBoxps.Text; path = "student.txt"; if (FindUser(un, ps, path)) { st.Show(); flag = 1; } path = "instructor.txt"; if (FindUser(un, ps, path)) { ins.Show(); flag = 1; } path = "manager.txt"; if (FindUser(un, ps, path)) { ma.Show(); flag = 1; } if (flag == 0) { ERE.Text = "Wrong password or ID"; } }
private void button1_Click(object sender, EventArgs e) { this.Hide(); InstructorMain sm = new InstructorMain(); sm.Show(); }
private void button1_Click(object sender, EventArgs e) { studentMain st = new studentMain(); InstructorMain ins = new InstructorMain(); ManagerMain ma = new ManagerMain(); string un = textBoxun.Text; string ps = textBoxps.Text; if (!(string.IsNullOrWhiteSpace(un) && string.IsNullOrWhiteSpace(ps))) { checkUsernamePassword(un, ps); if (FindUser(un, ps, "student.txt")) { this.Hide(); st.Show(); } else if (FindUser(un, ps, "instructor.txt")) { this.Hide(); Task.Delay(1000); ins.Show(); } else if (FindUser(un, ps, "manager.txt")) { this.Hide(); Task.Delay(1000); ma.Show(); } else { ERE.Text = "Wrong password or ID"; } } else { ERE.Text = "Fill in the password and ID"; } }