标题:劳驾帮帮忙,label怎么显示
只看楼主
和谐CRH
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2011-5-4
结帖率:100%
 问题点数:0 回复次数:1 
劳驾帮帮忙,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 = ?
搜索更多相关主题的帖子: return 
2011-05-13 15:42
xydddaxia
Rank: 11Rank: 11Rank: 11Rank: 11
等 级:贵宾
威 望:33
帖 子:466
专家分:2307
注 册:2009-3-20
得分:0 
=(dMax-dMin).ToString()

站在春哥的肩膀上
2011-05-14 09:04



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-339733-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.075196 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved