private void btnLogin_Click(object sender, EventArgs e) { string email = tbxUsername.Text; string password = tbxPassword.Text; if (conn.Login(email, password)) { Managment mg = new Managment(email); AbsenceForm af = new AbsenceForm(); af.Show(); mg.Show(); } else { MessageBox.Show("Invalid data!"); } }
private void ScheduleControl_FormClosing(object sender, FormClosingEventArgs e) { mng.Show(); }