Changeset 5070
- Timestamp:
- 12/07/10 16:58:11 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Core.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r4300 r5070 68 68 Content.ItemsMoved -= new CollectionItemsChangedEventHandler<IndexedItem<T>>(Content_ItemsMoved); 69 69 Content.CollectionReset -= new CollectionItemsChangedEventHandler<IndexedItem<T>>(Content_CollectionReset); 70 foreach (T item in Content) { 71 item.ItemImageChanged -= new EventHandler(Item_ItemImageChanged); 72 item.ToStringChanged -= new EventHandler(Item_ToStringChanged); 73 } 70 74 base.DeregisterContentEvents(); 71 75 } … … 136 140 try { 137 141 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 138 } 139 catch (Exception ex) { 142 } catch (Exception ex) { 140 143 ErrorHandling.ShowErrorDialog(this, ex); 141 144 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r4300 r5070 70 70 Content.ItemsMoved -= new CollectionItemsChangedEventHandler<IndexedItem<T>>(Content_ItemsMoved); 71 71 Content.CollectionReset -= new CollectionItemsChangedEventHandler<IndexedItem<T>>(Content_CollectionReset); 72 foreach (T item in Content) { 73 item.ItemImageChanged -= new EventHandler(Item_ItemImageChanged); 74 item.ToStringChanged -= new EventHandler(Item_ToStringChanged); 75 } 72 76 base.DeregisterContentEvents(); 73 77 } … … 139 143 try { 140 144 return (T)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 141 } 142 catch (Exception ex) { 145 } catch (Exception ex) { 143 146 ErrorHandling.ShowErrorDialog(this, ex); 144 147 }
Note: See TracChangeset
for help on using the changeset viewer.