private void btnTestSearch_Click(object sender, EventArgs e) { TestSearchSelection dlg = new TestSearchSelection(); dlg.Paths = BasePath; dlg.Filters = GetFilterList(false); dlg.DynamicFilters = m_dynamicFilter; if (dlg.ShowDialog() == DialogResult.OK) { listView.Items.Clear(); foreach (var filter in dlg.Filters) { listView.Items.Add(filter.CreateListViewItem()); } } }
private void btnTestSearch_Click(object sender, EventArgs e) { TestSearchSelection dlg = new TestSearchSelection(); dlg.Paths = BasePath; dlg.Filters = GetFilterList(false); dlg.DynamicFilters = m_dynamicFilter; if (dlg.ShowDialog() == DialogResult.OK) { listView.Items.Clear(); foreach (var filter in dlg.Filters) listView.Items.Add(filter.CreateListViewItem()); } }