public FrmWizard(DGV_SearchMeta dgvSearchMeta) { InitializeComponent(); this.dgvToBeSearchedMeta = new DGV_SearchMeta(dgvSearchMeta); this.FillGridColumnNames(); }
public FrmWizard(DGV_SearchMeta dgvSearchMeta, FrmAdvanced_Search searchForm) { InitializeComponent(); this.searchForm = searchForm; this.dgvToBeSearchedMeta = new DGV_SearchMeta(dgvSearchMeta); this.FillGridColumnNames(); }
/// <summary> /// Construct a simple search form. /// </summary> /// <param name="dgvToSearch">The datagridview control on which the search will be performed</param> /// <param name="searchTitle">User defined title of the search form.</param> public FrmSimple_Search(DataGridView dgvToSearch, string searchTitle, ComboBox cmbSearch_PrevState = null) { InitializeComponent(); this.dgvToBeSearchedMeta = new DGV_SearchMeta(dgvToSearch, searchTitle); // the search values are stored in the main class (DataGridView_withQuery) and are passed to // this form to recover previously searched values if (cmbSearch_PrevState != null) { for (int i = 0; i < cmbSearch_PrevState.Items.Count; ++i) { this.cmbSearch.Items.Add(cmbSearch_PrevState.Items[i]); } this.cmbSearch_PrevState = cmbSearch_PrevState; } }
public FrmWizard(DataGridView dgv, string title) { InitializeComponent(); this.dgvToBeSearchedMeta = new DGV_SearchMeta(dgv, title); this.FillGridColumnNames(); }
// copy constructor public DGV_SearchMeta(DGV_SearchMeta oldSample) { this.dgv = oldSample.dgv; this.title = oldSample.title; this.ReadGridColumns(); }