Пример #1
0
 private void nhânViênToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (nv == null)
     {
         nv = new Nhanvien_View();
         nv.StartPosition = FormStartPosition.CenterScreen;
         nv.WindowState   = FormWindowState.Maximized;
         nv.MdiParent     = this;
         nv.Show();
     }
     else
     {
         nv.Activate();
     }
 }
Пример #2
0
        private void bbtNhanvien_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.Kiemtratontai(typeof(Nhanvien_View));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                Nhanvien_View nv = new Nhanvien_View();
                nv.MdiParent = this;
                //dmk.StartPosition = FormStartPosition.CenterParent;
                nv.WindowState = FormWindowState.Maximized;
                nv.Show();
            }
        }