Changeset 3423 for trunk/sources
- Timestamp:
- 04/19/10 22:16:27 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3416 r3423 230 230 T item = itemsListView.SelectedItems[0].Tag as T; 231 231 if (item != null) { 232 I View view = MainFormManager.CreateDefaultView(item);232 IContentView view = MainFormManager.CreateDefaultView(item); 233 233 if (view != null) { 234 234 view.ReadOnly = ReadOnly; 235 view.Locked = Locked; 235 236 view.Show(); 236 237 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3416 r3423 190 190 if (itemsListView.SelectedItems.Count == 1) { 191 191 T item = (T)itemsListView.SelectedItems[0].Tag; 192 I View view = MainFormManager.CreateDefaultView(item);192 IContentView view = MainFormManager.CreateDefaultView(item); 193 193 if (view != null) { 194 view.ReadOnly = this.ReadOnly; 194 view.ReadOnly = ReadOnly; 195 view.Locked = Locked; 195 196 view.Show(); 196 197 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3416 r3423 224 224 if (itemsListView.SelectedItems.Count == 1) { 225 225 T item = (T)itemsListView.SelectedItems[0].Tag; 226 I View view = MainFormManager.CreateDefaultView(item);226 IContentView view = MainFormManager.CreateDefaultView(item); 227 227 if (view != null) { 228 228 view.ReadOnly = ReadOnly; 229 view.Locked = Locked; 229 230 view.Show(); 230 231 } -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r3416 r3423 355 355 IOperator op = GetOperatorTag(graphTreeView.SelectedNode); 356 356 if (op != null) { 357 I View view = MainFormManager.CreateDefaultView(op);357 IContentView view = MainFormManager.CreateDefaultView(op); 358 358 if (view != null) { 359 359 view.ReadOnly = this.ReadOnly; 360 view.Locked = this.Locked; 360 361 viewToolStripMenuItem.Enabled = true; 361 362 viewToolStripMenuItem.Tag = view; -
trunk/sources/HeuristicLab.Operators.Views.GraphVisualization/3.3/OperatorGraphVisualization/OperatorGraphView.cs
r3386 r3423 156 156 if (shapeInfo != null) { 157 157 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 } 159 164 HandledMouseEventArgs eventArgs = e as HandledMouseEventArgs; 160 165 if (eventArgs != null) … … 189 194 if (shapeInfo != null) { 190 195 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(); 192 200 } 193 201 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs
r3367 r3423 158 158 159 159 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 } 161 166 } 162 167 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs
r3350 r3423 54 54 55 55 public new RunCollection Content { 56 get { return (RunCollection) 56 get { return (RunCollection)base.Content; } 57 57 set { base.Content = value; } 58 58 } 59 59 60 60 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 } 63 69 } 64 70 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3416 r3423 166 166 if (itemsListView.SelectedItems.Count == 1) { 167 167 IRun item = (IRun)itemsListView.SelectedItems[0].Tag; 168 I View view = MainFormManager.CreateDefaultView(item);168 IContentView view = MainFormManager.CreateDefaultView(item); 169 169 if (view != null) { 170 170 view.ReadOnly = ReadOnly; 171 view.Locked = Locked; 171 172 view.Show(); 172 173 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs
r3416 r3423 128 128 if (listView.SelectedItems.Count == 1) { 129 129 IItem item = (IItem)listView.SelectedItems[0].Tag; 130 I View view = MainFormManager.CreateDefaultView(item);130 IContentView view = MainFormManager.CreateDefaultView(item); 131 131 if (view != null) { 132 132 view.ReadOnly = ReadOnly; 133 view.Locked = Locked; 133 134 view.Show(); 134 135 } … … 147 148 if (view != null) { 148 149 view.ReadOnly = ReadOnly; 150 view.Locked = Locked; 149 151 view.Show(); 150 152 }
Note: See TracChangeset
for help on using the changeset viewer.