private void 학생관리ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStudent frm = new frmStudent();

            frm.MdiParent = this;
            frm.Show();
            frm.Activate();
        }
Exemple #2
0
 public static frmStudent CreateStudentForm()
 {
     if (frm == null)
     {
         frm = new frmStudent();
     }
     return(frm);
 }
Exemple #3
0
        private void 학생관리ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmStudent frm = frmStudent.CreateStudentForm();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
            frm.Activate();
        }
Exemple #4
0
 private void 학생관리ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (studentFrm == null)
     {
         studentFrm           = new frmStudent();
         studentFrm.MdiParent = this;
         studentFrm.Show(); // Load => Shown => Activate
     }
     else
     {
         studentFrm.Activate(); // Activate
     }
 }
Exemple #5
0
 private void frmStudent_FormClosing(object sender, FormClosingEventArgs e)
 {
     frm = null;
 }