コード例 #1
0
        //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;
        }
コード例 #2
0
 private void btnMenuStudent_Click(object sender, EventArgs e)
 {
     if (CheckOpened("StudentMainform"))
     {
         Application.OpenForms["StudentMainform"].BringToFront();
     }
     else
     {
         StudentMainform frm = new StudentMainform();
         frm.Show();
     }
 }