DrawColorBarResults
(
DrawingObjects oDrawingObjects,
String sSourceColumnName,
String sCaption,
Double dSourceCalculationNumber1,
Double dSourceCalculationNumber2,
Int32 iDecimalPlaces,
Color oColor1,
Color oColor2,
Rectangle oColumnRectangle,
Int32 iResultsLeft,
Int32 iResultsRight,
ref Int32 iTop
)
{
Debug.Assert(oDrawingObjects != null);
Debug.Assert( !String.IsNullOrEmpty(sSourceColumnName) );
Debug.Assert( !String.IsNullOrEmpty(sCaption) );
Debug.Assert(iDecimalPlaces >= 0);
AssertValid();
if (dSourceCalculationNumber2 == dSourceCalculationNumber1)
{
// All the source numbers were the same. Draw one color only.
oColor2 = oColor1;
}
DrawColorBarResults(oDrawingObjects, sSourceColumnName, sCaption,
DoubleToString(dSourceCalculationNumber1, iDecimalPlaces),
DoubleToString(dSourceCalculationNumber2, iDecimalPlaces),
oColor1, oColor2, oColumnRectangle, iResultsLeft, iResultsRight,
ref iTop);
}