- Timestamp:
- 07/07/10 14:36:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs
r3904 r4011 42 42 public OperatorGraphView() { 43 43 InitializeComponent(); 44 44 45 45 this.graphVisualizationInfoView.Controller.OnShowContextMenu += new EventHandler<EntityMenuEventArgs>(Controller_OnShowContextMenu); 46 46 this.graphVisualizationInfoView.Controller.Model.Selection.OnNewSelection += new EventHandler(Controller_SelectionChanged); … … 58 58 59 59 protected override void OnContentChanged() { 60 bool createdVisualizationInfo = false; 61 if (this.VisualizationInfo == null) { 62 this.VisualizationInfo = new OperatorGraphVisualizationInfo(this.Content); 63 createdVisualizationInfo = true; 64 } 65 this.graphVisualizationInfoView.Content = this.VisualizationInfo; 66 if (createdVisualizationInfo) 67 this.graphVisualizationInfoView.RelayoutGraph(); 60 if (Content != null) { 61 bool createdVisualizationInfo = false; 62 if (this.VisualizationInfo == null) { 63 this.VisualizationInfo = new OperatorGraphVisualizationInfo(this.Content); 64 createdVisualizationInfo = true; 65 } 66 this.graphVisualizationInfoView.Content = this.VisualizationInfo; 67 if (createdVisualizationInfo) 68 this.graphVisualizationInfoView.RelayoutGraph(); 69 } else { 70 this.graphVisualizationInfoView.Content = null; 71 } 68 72 } 69 73 … … 188 192 189 193 private void initialOperatorToolStripMenuItem_Click(object sender, EventArgs e) { 190 191 192 193 194 194 IOperatorShapeInfo shapeInfo = this.shapeContextMenu.Tag as IOperatorShapeInfo; 195 if (this.VisualizationInfo.InitialShape == shapeInfo) 196 this.VisualizationInfo.InitialShape = null; 197 else 198 this.VisualizationInfo.InitialShape = shapeInfo; 195 199 } 196 200 197 201 private void breakPointToolStripMenuItem_Click(object sender, EventArgs e) { 198 199 200 201 202 202 IOperatorShapeInfo shapeInfo = this.shapeContextMenu.Tag as IOperatorShapeInfo; 203 if (shapeInfo != null) { 204 IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo); 205 op.Breakpoint = !op.Breakpoint; 206 } 203 207 } 204 208 #endregion
Note: See TracChangeset
for help on using the changeset viewer.