//public StudentAddForm() //{ // InitializeComponent(); //} public StudentAddForm(StudentMainform _frm) { InitializeComponent(); std = new ClassStudent(); cGrade = new ClassGrade(); cSection = new ClassSection(); cProgram = new Programs(); open = new OpenFileDialog(); this._frm = _frm; }
private void btnMenuStudent_Click(object sender, EventArgs e) { if (CheckOpened("StudentMainform")) { Application.OpenForms["StudentMainform"].BringToFront(); } else { StudentMainform frm = new StudentMainform(); frm.Show(); } }