private void nhàCungCấpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (ncc == null)
     {
         ncc = new Nhacungcap_View();
         ncc.StartPosition = FormStartPosition.CenterScreen;
         ncc.WindowState   = FormWindowState.Maximized;
         ncc.MdiParent     = this;
         ncc.Show();
     }
     else
     {
         ncc.Activate();
     }
 }
Example #2
0
        private void bbtNhacungcap_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.Kiemtratontai(typeof(Nhacungcap_View));

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