コード例 #1
0
        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();
        }
コード例 #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();
     }
 }
コード例 #3
0
        private void cncBT_Click(object sender, EventArgs e)
        {
            LogInPage logPage = new LogInPage();

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