private void DgvFilter_CellClick(object sender, DataGridViewCellEventArgs e) { if (!ViewFilterOpen) { ViewFilter = new frmViewFilter(filters, e.RowIndex); ViewFilter.Show(); } else { MessageBox.Show("Please close the existing View Filter screen by clicking save or cancel"); ViewFilter.Show(); ViewFilter.BringToFront(); ViewFilter.Visible = true; } }
public static void createViewFilter() { ViewFilter = new frmViewFilter(); }