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