private void button1_Click(object sender, EventArgs e) { frmNhaCungCap NCC = new frmNhaCungCap(); NCC.ShowDialog(); ctrlNCC.HienthiAutoComboBox(cmbNhaCungCap); }
private void mnuNhaCungCap_Click(object sender, EventArgs e) { if (NhaCungCap == null || NhaCungCap.IsDisposed) { NhaCungCap = new frmNhaCungCap(); NhaCungCap.MdiParent = this; NhaCungCap.Show(); } else { NhaCungCap.Activate(); } }