private void btnThemLyDoChi_Click(object sender, EventArgs e) { frmLyDoChi Chi = new frmLyDoChi(); Chi.ShowDialog(); ctrlLyDo.HienthiAutoComboBox(cmbLyDoChi); }
private void mnuLyDoChi_Click(object sender, EventArgs e) { if (LyDoChi == null || LyDoChi.IsDisposed) { LyDoChi = new frmLyDoChi(); LyDoChi.MdiParent = this; LyDoChi.Show(); } else { LyDoChi.Activate(); } }