@@ -13,8 +13,9 @@ public abstract class BaseNumericNode : BaseNode
1313 /// <param name="icon">The icon of the node.</param>
1414 /// <param name="type">The type of the node.</param>
1515 /// <param name="value">The value of the node.</param>
16+ /// <param name="alternativeValue">An alternative value of the node.</param>
1617 /// <returns>The pixel size the node occupies.</returns>
17- protected Size DrawNumeric ( ViewInfo view , int x , int y , Image icon , string type , string value )
18+ protected Size DrawNumeric ( ViewInfo view , int x , int y , Image icon , string type , string value , string alternativeValue )
1819 {
1920 Contract . Requires ( view != null ) ;
2021 Contract . Requires ( icon != null ) ;
@@ -41,6 +42,10 @@ protected Size DrawNumeric(ViewInfo view, int x, int y, Image icon, string type,
4142 x = AddText ( view , x , y , view . Settings . NameColor , HotSpot . NameId , Name ) + view . Font . Width ;
4243 x = AddText ( view , x , y , view . Settings . NameColor , HotSpot . NoneId , "=" ) + view . Font . Width ;
4344 x = AddText ( view , x , y , view . Settings . ValueColor , 0 , value ) + view . Font . Width ;
45+ if ( alternativeValue != null )
46+ {
47+ x = AddText ( view , x , y , view . Settings . ValueColor , 1 , alternativeValue ) + view . Font . Width ;
48+ }
4449
4550 x = AddComment ( view , x , y ) ;
4651
0 commit comments