private void btnThemDaiLy_Click(object sender, EventArgs e) { frmDaiLy DaiLy = new frmDaiLy(); DaiLy.ShowDialog(); ctrlKhachHang.HienthiAutoComboBox(cmbKhachHang, true); }
private void mnuDaiLy_Click(object sender, EventArgs e) { if (DaiLy == null || DaiLy.IsDisposed) { DaiLy = new frmDaiLy(); DaiLy.MdiParent = this; DaiLy.Show(); } else { DaiLy.Activate(); } }