private void logOutBt_Click(object sender, EventArgs e)
        {
            LogInPage logPage = new LogInPage();

            logPage.Show(); this.Hide();
            MesBox box = new MesBox(logPage, "Log-Out Successfull.. :)", true); box.Show();
        }
Beispiel #2
0
 private void submtBT_Click(object sender, EventArgs e)
 {
     if (chkForm())
     {
         if (techr.Checked)
         {
             bool    gen      = mle.Checked;
             Teacher aTeacher = new Teacher(IdBx.Text, nameBx.Text, mailBx.Text, dateTime.Value, gen, instBx.Text, dptBx.Text);
             aTeacher.getReg(pass1Bx.Text);
         }
         else
         {
             bool    gen      = mle.Checked;
             Student aStudent = new Student(IdBx.Text, nameBx.Text, mailBx.Text, dateTime.Value, gen);
             aStudent.getReg(pass1Bx.Text);
         }
         LogInPage logPage = new LogInPage(); logPage.Show(); this.Hide();
         MesBox    box     = new MesBox(logPage, "Registation Successfull.. :)", true); box.Show();
     }
 }
Beispiel #3
0
        private void cncBT_Click(object sender, EventArgs e)
        {
            LogInPage logPage = new LogInPage();

            logPage.Show(); this.Hide();
        }