コード例 #1
0
 private void btnNhapHang_Click(object sender, EventArgs e)
 {
     if (!CheckExistForm("frmNhapHang"))
     {
         formNhapHang.MdiParent = this;
         formNhapHang.Show();
     }
     else
     {
         ActivateChildForm("frmNhapHang");
     }
 }
コード例 #2
0
 public static void HienThiPhieuNhapHang()
 {
     if (m_FrmNhapHang == null || m_FrmNhapHang.IsDisposed)
     {
         m_FrmNhapHang           = new frmNhapHang();
         m_FrmNhapHang.MdiParent = frmMain.ActiveForm;
         m_FrmNhapHang.Show();
     }
     else
     {
         m_FrmNhapHang.Activate();
     }
 }
コード例 #3
0
        private void btnNhapHang_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form form = IsActive12(typeof(QuanLy_DienThoai.Views.frmNhapHang));

            if (form == null)
            {
                frmNhapHang Child = new frmNhapHang(lbltendangnhap.Caption);
                Child.MdiParent = this;
                Child.Show();
            }
            else
            {
                form.Activate();
            }
        }