Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 22:16:27 (14 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.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  }
Note: See TracChangeset for help on using the changeset viewer.