private void lstvFilter_DoubleClick(object sender, EventArgs e) { FilterItem frm = new FilterItem(_filterItemList, itemIndex); frm.ShowDialog(this); ShowListView(); lstvFilter.Items[itemIndex].Selected = true; }
private void btnAdd_Click(object sender, EventArgs e) { int count = _filterItemList.Count; FilterItem frm = new FilterItem(_filterItemList); frm.ShowDialog(this); if (_filterItemList.Count > count) { ShowListView(); itemIndex = count; lstvFilter.Items[itemIndex].Selected = true; } }