Пример #1
0
 private void khoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (k == null)
     {
         k = new Kho_View();
         k.StartPosition = FormStartPosition.CenterScreen;
         k.WindowState   = FormWindowState.Maximized;
         k.MdiParent     = this;
         k.Show();
     }
     else
     {
         k.Activate();
     }
 }
Пример #2
0
        private void bbtKho_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = this.Kiemtratontai(typeof(Kho_View));

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