コード例 #1
0
 private void btn_LoaiHang_Click_1(object sender, EventArgs e)
 {
     if (m_FrmLoaiHang == null || m_FrmLoaiHang.IsDisposed)
     {
         m_FrmLoaiHang           = new frmLoaiHang();
         m_FrmLoaiHang.MdiParent = this;
         m_FrmLoaiHang.Show();
     }
     else
     {
         m_FrmLoaiHang.Activate();
     }
 }
コード例 #2
0
        private void btnLoaiHang_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form frm = CheckForm(typeof(frmLoaiHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmLoaiHang frmN = new frmLoaiHang();
                frmN.MdiParent = this;
                frmN.Show();
            }
        }