Exemple #1
0
        private void btnLogIn_Click(object sender, EventArgs e)
        {
            LogIns liclass = new LogIns();

            if (liclass.LogIn(txtUser.Text, txtPass.Text) != 0)
            {
                this.Hide();
                MDI_Main mm = new MDI_Main();
                mm.Show();
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SchoolInfo si = new SchoolInfo();

            si.SaveSchoolInfo(txtSIName.Text, txtSIEstablish.Text, txtSILocation.Text);
            this.Hide();

            MDI_Main mm = new MDI_Main();

            mm.Show();
        }