Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3423 for trunk/sources


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)

Location:
trunk/sources
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r3416 r3423  
    230230        T item = itemsListView.SelectedItems[0].Tag as T;
    231231        if (item != null) {
    232           IView view = MainFormManager.CreateDefaultView(item);
     232          IContentView view = MainFormManager.CreateDefaultView(item);
    233233          if (view != null) {
    234234            view.ReadOnly = ReadOnly;
     235            view.Locked = Locked;
    235236            view.Show();
    236237          }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r3416 r3423  
    190190      if (itemsListView.SelectedItems.Count == 1) {
    191191        T item = (T)itemsListView.SelectedItems[0].Tag;
    192         IView view = MainFormManager.CreateDefaultView(item);
     192        IContentView view = MainFormManager.CreateDefaultView(item);
    193193        if (view != null) {
    194           view.ReadOnly = this.ReadOnly;
     194          view.ReadOnly = ReadOnly;
     195          view.Locked = Locked;
    195196          view.Show();
    196197        }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r3416 r3423  
    224224      if (itemsListView.SelectedItems.Count == 1) {
    225225        T item = (T)itemsListView.SelectedItems[0].Tag;
    226         IView view = MainFormManager.CreateDefaultView(item);
     226        IContentView view = MainFormManager.CreateDefaultView(item);
    227227        if (view != null) {
    228228          view.ReadOnly = ReadOnly;
     229          view.Locked = Locked;
    229230          view.Show();
    230231        }
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs

    r3416 r3423  
    355355        IOperator op = GetOperatorTag(graphTreeView.SelectedNode);
    356356        if (op != null) {
    357           IView view = MainFormManager.CreateDefaultView(op);
     357          IContentView view = MainFormManager.CreateDefaultView(op);
    358358          if (view != null) {
    359359            view.ReadOnly = this.ReadOnly;
     360            view.Locked = this.Locked;
    360361            viewToolStripMenuItem.Enabled = true;
    361362            viewToolStripMenuItem.Tag = view;
  • 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    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs

    r3367 r3423  
    158158
    159159    protected virtual void createUserDefinedAlgorithmButton_Click(object sender, EventArgs e) {
    160       MainFormManager.CreateDefaultView(Content.CreateUserDefinedAlgorithm()).Show();
     160      IContentView view = MainFormManager.CreateDefaultView(Content.CreateUserDefinedAlgorithm());
     161      if (view != null) {
     162        view.ReadOnly = this.ReadOnly;
     163        view.Locked = this.Locked;
     164        view.Show();
     165      }
    161166    }
    162167  }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs

    r3350 r3423  
    5454
    5555    public new RunCollection Content {
    56       get { return (RunCollection) base.Content; }
     56      get { return (RunCollection)base.Content; }
    5757      set { base.Content = value; }
    5858    }
    5959
    6060    private void dataGridView_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) {
    61       if (e.RowIndex > 0)
    62         MainFormManager.CreateDefaultView(Content.ElementAt(e.RowIndex)).Show();
     61      if (e.RowIndex > 0) {
     62        IContentView view = MainFormManager.CreateDefaultView(Content.ElementAt(e.RowIndex));
     63        if (view != null) {
     64          view.ReadOnly = this.ReadOnly;
     65          view.Locked = this.Locked;
     66          view.Show();
     67        }
     68      }
    6369    }
    6470  }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs

    r3416 r3423  
    166166      if (itemsListView.SelectedItems.Count == 1) {
    167167        IRun item = (IRun)itemsListView.SelectedItems[0].Tag;
    168         IView view = MainFormManager.CreateDefaultView(item);
     168        IContentView view = MainFormManager.CreateDefaultView(item);
    169169        if (view != null) {
    170170          view.ReadOnly = ReadOnly;
     171          view.Locked = Locked;
    171172          view.Show();
    172173        }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r3416 r3423  
    128128      if (listView.SelectedItems.Count == 1) {
    129129        IItem item = (IItem)listView.SelectedItems[0].Tag;
    130         IView view = MainFormManager.CreateDefaultView(item);
     130        IContentView view = MainFormManager.CreateDefaultView(item);
    131131        if (view != null) {
    132132          view.ReadOnly = ReadOnly;
     133          view.Locked = Locked;
    133134          view.Show();
    134135        }
     
    147148      if (view != null) {
    148149        view.ReadOnly = ReadOnly;
     150        view.Locked = Locked;
    149151        view.Show();
    150152      }
Note: See TracChangeset for help on using the changeset viewer.