private void btnApply_Click(object sender, EventArgs e) { if (lstFilters.SelectedItems.Count > 0) { AddItem itemForm = new AddItem(option, lstFilters.SelectedItems[0].Index); itemForm.Show(this); } }
private void btnAdd_Click(object sender, EventArgs e) { AddItem itemForm = new AddItem(option, -1); itemForm.Show(this); }