private void lstFilters_DoubleClick(object sender, EventArgs e) { if (lstFilters.SelectedItems.Count > 0) { AddExclusionPatternForm itemForm = new AddExclusionPatternForm(SQLOption, lstFilters.SelectedItems[0].Index); itemForm.ShowDialog(this); } }
private void btnAdd_Click(object sender, EventArgs e) { AddExclusionPatternForm itemForm = new AddExclusionPatternForm(SQLOption); itemForm.ShowDialog(this); }