示例#1
0
        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!");
            }
        }
示例#2
0
 private void ScheduleControl_FormClosing(object sender, FormClosingEventArgs e)
 {
     mng.Show();
 }