예제 #1
0
        private void btnSinhVien_Click(object sender, EventArgs e)
        {
            frmSinhVien sinhVien = new frmSinhVien();
            frmMain     frmMain  = new frmMain();

            frmMain.Hide();
            sinhVien.Show();
        }
예제 #2
0
        private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(frmSinhVien));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmSinhVien f = new frmSinhVien();
                f.MdiParent = this;
                f.Show();
            }
        }