コード例 #1
0
        /// <summary>
        ///数字档位
        /// </summary>
        private ChartBusinessObject CreateBusinessObject15()
        {
            ChartBusinessObject obj = new ChartBusinessObject();

            if (IsStart == true)
            {
                obj.Value = Convert.ToDouble(_data[22]);
            }
            obj.Category = this.lastDate;
            return(obj);
        }
コード例 #2
0
        /// <summary>
        /// 输出转速(CAN)
        /// </summary>
        private ChartBusinessObject CreateBusinessObject13()
        {
            ChartBusinessObject obj = new ChartBusinessObject();

            //     obj.Value = this.random.Next(800, 1800);
            if (IsStart == true)
            {
                obj.Value = Convert.ToDouble(_data[20]);
            }
            obj.Category = this.lastDate;
            return(obj);
        }