private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { if (BanLe == null || BanLe.IsDisposed) { BanLe = new frmBanLe(); BanLe.Show(); } else { BanLe.Activate(); } }
private void dataGridView_DoubleClick(object sender, EventArgs e) { if (BanLe == null || BanLe.IsDisposed) { BanLe = new frmBanLe(ctrl); BanLe.Show(); } else { BanLe.Activate(); } }