private void UnselectItems() { foreach (var itemRef in GetSelected(gridSelected)) { _availableRefs.Add(itemRef); _selectedRefs.Remove(itemRef); } }
private void mniRemoveReferencingItems_Click(object sender, EventArgs e) { try { foreach (var item in SelectedRows().ToList()) { _items.Remove(item); _wizard.ExportProcessor.RemoveReferencingItems(_wizard.InstallScript, item.Item.Reference); _changes = true; } UpdateUi(); } catch (Exception ex) { Utils.HandleError(ex); } }