Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5220


Ignore:
Timestamp:
01/05/11 09:43:22 (14 years ago)
Author:
epitzer
Message:

Better spacing for parameters and display of "null" for null values in parameter view (#47)

File:
1 edited

Legend:

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

    r5146 r5220  
    9999      node.SelectedImageIndex = 0;
    100100      foreach (var var in scope.Variables) {
    101         TreeNode varNode = node.Nodes.Add(string.Format("{0}={1}", var.Name, var.Value));
     101        TreeNode varNode = node.Nodes.Add(string.Format("{0} = {1}", var.Name, var.Value));
    102102        varNode.Tag = var.Value;
    103103        varNode.ToolTipText = string.Format("{0}{1}{1}{2}",
     
    149149        string actualName = null;
    150150        object value = GetParameterValue(param, executionContext, out actualName);
     151        if (value == null)
     152          value = "null";
    151153        string label = actualName != null && actualName != param.Name ?
    152           string.Format("{0}({1})={2}", param.Name, actualName, value) :
    153           string.Format("{0}={1}", param.Name, value);
     154          string.Format("{0} ({1}) = {2}", param.Name, actualName, value) :
     155          string.Format("{0} = {1}", param.Name, value);
    154156        TreeNode paramNode = node.Nodes.Add(label);
    155157        paramNode.Tag = param;
     
    265267    #endregion
    266268
    267 
    268269  }
    269270}
Note: See TracChangeset for help on using the changeset viewer.