劳驾帮帮忙,label怎么显示
#region->最值IDataSrc iActiveTrace = m_DataManager.PoolEntries[poolentry].DataSource;
WavMinMax calculator = new WavMinMax(iActiveTrace, double.MinValue, double.MaxValue);
WavCalcResult Calcresult = calculator.Exec();
if (Calcresult != WavCalcResult.OK)
{
MessageBox.Show(this, "Can not calculate Max/Min\r\n\r\n" + calculator.ErrorCode, "CSI Display Demo");
return;
}
double dMin;
double dMax;
double dMinPos;
double dMaxPos;
calculator.Result(out dMin, out dMax, out dMinPos, out dMaxPos);
lblMin.Text = Conversion.ConvertDoubleToString(dMin, 4, iActiveTrace.YUnit) + iActiveTrace.YUnit;
lblMax.Text = Conversion.ConvertDoubleToString(dMax, 4, iActiveTrace.YUnit) + iActiveTrace.YUnit;
lblMinPos.Text = Conversion.ConvertDoubleToString(dMinPos, 4, iActiveTrace.XUnit) + iActiveTrace.XUnit;
lblMaxPos.Text = Conversion.ConvertDoubleToString(dMaxPos, 4, iActiveTrace.XUnit) + iActiveTrace.XUnit;
display1.TimeDisplay.Cursors[1].time = dMinPos;
display1.TimeDisplay.Cursors[2].time = dMaxPos;
display1.TimeDisplay.CtlLayout.HorizontalCursors.Visible = true;
#endregion
我只想显示dMax-dMin的值,语句该怎么写呢?
lblFudu.Text = ?