Example #1
0
        private void manageStudentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var OpenForms = Application.OpenForms.Cast <Form>();
            var isOpen    = OpenForms.Any(k => k.Name == "ManageStudentData");

            if (!isOpen)
            {
                var studentinformation = new ManageStudentData();
                studentinformation.MdiParent = this;
                studentinformation.Show();
            }
        }
Example #2
0
 public EditStudentData(DataforStudent editStudent, ManageStudentData manageStudentData = null)
 {
     InitializeComponent();
     lAddEdit.Text     = "Edit Student";
     this.Text         = "Edit Student";
     managestudentdata = manageStudentData;
     if (editStudent == null)
     {
         MessageBox.Show("Select a valid record to edit");
         Close();
     }
     else
     {
         ManageData = new Norman_Manley_Institution_fo_the_ImpairedEntities1();
         PopulateFields(editStudent);
     }
 }