Changeset 5122
- Timestamp:
- 12/17/10 11:04:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.cs
r5116 r5122 239 239 return; 240 240 IParameter param = executionContextTreeView.SelectedNode.Tag as IParameter; 241 string actualName = null; 242 if (param != null) 243 MainFormManager.MainForm.ShowContent(GetParameterValue(param, Content.ExecutionContext, out actualName) as IContent); 241 if (param != null) { 242 string actualName = null; 243 IExecutionContext context = executionContextTreeView.SelectedNode.Parent as IExecutionContext ?? Content.ExecutionContext; 244 MainFormManager.MainForm.ShowContent(GetParameterValue(param, context, out actualName) as IContent); 245 } 244 246 } 245 247 246 248 private void executionContextConextMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e) { 247 249 IParameter param = executionContextTreeView.SelectedNode.Tag as IParameter; 248 string actualName = null; 249 if (param != null) 250 showValueToolStripMenuItem.Enabled = GetParameterValue(param, Content.ExecutionContext, out actualName) is IContent; 251 else 250 if (param != null) { 251 string actualName = null; 252 IExecutionContext context = executionContextTreeView.SelectedNode.Parent.Tag as IExecutionContext ?? Content.ExecutionContext; 253 showValueToolStripMenuItem.Enabled = GetParameterValue(param, context, out actualName) is IContent; 254 } else 252 255 e.Cancel = true; 253 256 }
Note: See TracChangeset
for help on using the changeset viewer.