Changeset 14029 for branches/crossvalidation-2434/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs
- Timestamp:
- 07/08/16 14:40:02 (8 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Operators.Views.GraphVisualization.Views/3.3/OperatorGraphView.cs
r12012 r14029 25 25 using System.Windows.Forms; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Core.Views; 27 28 using HeuristicLab.MainForm; 28 29 using HeuristicLab.MainForm.WindowsForms; … … 140 141 if (shapeInfo != null) { 141 142 IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo); 142 IContentView view = MainFormManager.MainForm.ShowContent(op); 143 if (view != null) { 144 view.ReadOnly = this.ReadOnly; 145 view.Locked = this.Locked; 143 IOperatorGraphOperator graphOp = op as IOperatorGraphOperator; 144 145 Control c = this; 146 BreadcrumbViewHost vh; 147 148 do { 149 c = c.Parent; 150 vh = c as BreadcrumbViewHost; 151 } while ((vh == null || !vh.EnableBreadcrumbs) && c != null); 152 153 if (graphOp != null && vh != null) { 154 vh.AddBreadcrumbs(vh.Content); 155 vh.AddBreadcrumb(graphOp.Name, graphOp.OperatorGraph); 156 vh.Content = graphOp.OperatorGraph; 157 vh.ReadOnly = ReadOnly; 158 vh.Locked = Locked; 159 } else { 160 IContentView view = MainFormManager.MainForm.ShowContent(op); 161 if (view != null) { 162 view.ReadOnly = ReadOnly; 163 view.Locked = Locked; 164 } 146 165 } 166 147 167 HandledMouseEventArgs eventArgs = e as HandledMouseEventArgs; 148 168 if (eventArgs != null)
Note: See TracChangeset
for help on using the changeset viewer.