Пример #1
0
        private void btnKhoHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmKhoHang kh = new frmKhoHang();

            kh.MdiParent = this;
            kh.Show();
        }
Пример #2
0
        private void btnKhoHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmKhoHang kh = new frmKhoHang();

            if (ExistsForm(kh))
            {
                return;
            }
            kh.MdiParent = this;
            kh.Show();
        }
Пример #3
0
 private void bbiKho_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (_khohang == null)
     {
         _khohang              = new frmKhoHang();
         _khohang.FormClosing += (ss, ex) =>
         {
             _khohang = null;
         };
         _khohang.MdiParent = this;
         _khohang.Show();
     }
     else
     {
         tabMdi.Pages[_khohang].MdiChild.Activate();
     }
 }