Пример #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string stdId = txtId.Text;
            string stdNme = txtName.Text;
            string stdDob = DOBPicker.Value.ToShortDateString();
            double stdGpa = Convert.ToDouble(txtGPA.Text);
            string status = "";

            if (chkActive.Checked)
            {

                status = "Enrolled";
            }
            else
            {
                status = "Not Enrolled";

            }

            StudentRgistration stdReg = new StudentRgistration();
            stdReg.registerStudent(stdId, stdNme, stdDob, stdGpa, status);

            StudentDetails std = new StudentDetails();
            std.MdiParent = this.MdiParent;
            std.Show();
            this.Close();
        }
Пример #2
0
 private void btnCancel_Click(object sender, EventArgs e)
 {
     StudentDetails std = new StudentDetails();
     std.MdiParent = this.MdiParent;
     std.Show();
     this.Close();
 }
Пример #3
0
 private void newRegistrationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StudentDetails sd = new StudentDetails();
     sd.MdiParent = this;
     sd.Show();
 }