Changeset 9174 for branches/UnloadJobs/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/GraphVisualizationInfoView.cs
- Timestamp:
- 01/21/13 09:05:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UnloadJobs/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/GraphVisualizationInfoView.cs
r9011 r9174 349 349 } 350 350 } 351 352 /// <summary> 353 /// Clean up any resources being used. 354 /// </summary> 355 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> 356 protected override void Dispose(bool disposing) { 357 if (disposing && (components != null)) { 358 if (Content != null) { 359 DeregisterContentEvents(); 360 } 361 foreach (IConnectionInfo connectionInfo in this.connectionInfoConnectionMapping.FirstValues.ToList()) { 362 DeregisterConnectionInfoEvents(connectionInfo); 363 } 364 foreach (IShapeInfo shapeInfo in this.shapeInfoShapeMapping.FirstValues.ToList()) { 365 DeregisterShapeInfoEvents(shapeInfo); 366 } 367 foreach (var shape in this.shapeInfoShapeMapping.SecondValues.ToList()) { 368 DeregisterShapeEvents(shape); 369 } 370 if (Content != null) { 371 foreach (IShapeInfo shapeInfo in this.Content.ShapeInfos) 372 DeregisterShapeInfoEvents(shapeInfo); 373 foreach (IConnectionInfo connectionInfo in this.Content.ConnectionInfos) 374 DeregisterConnectionInfoEvents(connectionInfo); 375 } 376 this.graphVisualization.OnEntityRemoved -= new System.EventHandler<global::Netron.Diagramming.Core.EntityEventArgs>(this.graphVisualization_OnEntityRemoved); 377 this.graphVisualization.OnEntityAdded -= new System.EventHandler<global::Netron.Diagramming.Core.EntityEventArgs>(this.graphVisualization_OnEntityAdded); 378 379 components.Dispose(); 380 } 381 base.Dispose(disposing); 382 } 351 383 } 352 384 }
Note: See TracChangeset
for help on using the changeset viewer.