public FrmWizard(DGV_SearchMeta dgvSearchMeta, FrmAdvanced_Search searchForm) { InitializeComponent(); this.searchForm = searchForm; this.dgvToBeSearchedMeta = new DGV_SearchMeta(dgvSearchMeta); this.FillGridColumnNames(); }
public void SearchAdvancedStart() { var dgv = GetBase(); if (dgv == null || dgv.ColumnCount == 0 || dgv.RowCount == 0) { MessageBox.Show("Cannot perform search on empty datagrid", Constants.msgAttention, MessageBoxButtons.OK, MessageBoxIcon.Stop); return; } if (this.searchAdvanced_Form == null || this.searchAdvanced_Form.IsDisposed) { this.searchAdvanced_Form = new FrmAdvanced_Search(dgv, this.SearchFormTitle, this.advancedSearch_PrevState); } this.searchAdvanced_Form.Show(); }