Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/10 11:04:59 (13 years ago)
Author:
epitzer
Message:

Enable showing actual values for parameters in non-current execution contexts (#47)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DebugEngine/3.3/OperationContentView.cs

    r5116 r5122  
    239239        return;
    240240      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      }
    244246    }
    245247
    246248    private void executionContextConextMenu_Opening(object sender, System.ComponentModel.CancelEventArgs e) {
    247249      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
    252255        e.Cancel = true;
    253256    }
Note: See TracChangeset for help on using the changeset viewer.