Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 22:16:27 (15 years ago)
Author:
mkommend
Message:

added setting of locked property after the creation of contentviews (ticket #982)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs

    r3386 r3423  
    156156          if (shapeInfo != null) {
    157157            IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo);
    158             MainFormManager.CreateDefaultView(op).Show();
     158            IContentView view = MainFormManager.CreateDefaultView(op);
     159            if (view != null) {
     160              view.ReadOnly = this.ReadOnly;
     161              view.Locked = this.Locked;
     162              view.Show();
     163            }
    159164            HandledMouseEventArgs eventArgs = e as HandledMouseEventArgs;
    160165            if (eventArgs != null)
     
    189194      if (shapeInfo != null) {
    190195        IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo);
    191         MainFormManager.CreateDefaultView(op).Show();
     196        IContentView view = MainFormManager.CreateDefaultView(op);
     197        view.ReadOnly = this.ReadOnly;
     198        view.Locked = this.Locked;
     199        view.Show();
    192200      }
    193201    }
Note: See TracChangeset for help on using the changeset viewer.