private void saveDetails_Click(object sender, EventArgs e)
 {
     DataTable ndt = new DataTable();
     ndt.Columns.AddRange(new DataColumn[] { new DataColumn("Student ID", typeof(string)), new DataColumn("Student Name", typeof(string)), new DataColumn("Date of Birth", typeof(DateTime)), new DataColumn("GPA", typeof(string)), new DataColumn("Status", typeof(bool)) });
     ndt.Rows.Add(new object[] { stdID.Text,stdNameValue.Text,stbDOB.Value,stdGPA.Text,stdStatus.Checked });
     StudentData.newValues = ndt;
     this.Close();
     StudentDetails detail = new StudentDetails();
     detail.Show();
     detail.MdiParent = Application.OpenForms["Registrations"];
 }
Example #2
0
 private void newRegistrationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     StudentDetails sd = new StudentDetails();
     sd.Show();
 }
 public StudentRegistration(StudentDetails _StudentDetails)
 {
     InitializeComponent();
     StudentDetails= _StudentDetails;
 }
Example #4
0
 private void newItem_Click(object sender, EventArgs e)
 {
     StudentDetails data = new StudentDetails();
     data.MdiParent = this;
     data.Show();
 }