Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/29/10 15:10:17 (14 years ago)
Author:
mkommend
Message:

changed logic of showing new views (ticket #972)

File:
1 edited

Legend:

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

    r3556 r3557  
    157157          if (shapeInfo != null) {
    158158            IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo);
    159             IContentView view = MainFormManager.CreateDefaultView(op);
     159            IContentView view = MainFormManager.MainForm.ShowContent(op);
    160160            if (view != null) {
    161161              view.ReadOnly = this.ReadOnly;
    162162              view.Locked = this.Locked;
    163               view.Show();
    164163            }
    165164            HandledMouseEventArgs eventArgs = e as HandledMouseEventArgs;
     
    197196      if (shapeInfo != null) {
    198197        IOperator op = this.VisualizationInfo.GetOperatorForShapeInfo(shapeInfo);
    199         IContentView view = MainFormManager.CreateDefaultView(op);
    200         view.ReadOnly = this.ReadOnly;
    201         view.Locked = this.Locked;
    202         view.Show();
     198        IContentView view = MainFormManager.MainForm.ShowContent(op);
     199        if (view != null) {
     200          view.ReadOnly = this.ReadOnly;
     201          view.Locked = this.Locked;
     202        }
    203203      }
    204204    }
Note: See TracChangeset for help on using the changeset viewer.