Example #1
0
        public void CreateSerialize()
        {
            string xml  = "<PenSeriesProps Color=\"123456\" Thickness=\"55\" />";
            var    sp   = SeriesPropsUtil.Create(xml);
            string xml1 = SeriesPropsUtil.Serialize(sp);

            Assert.Equal(xml, xml1);
        }
Example #2
0
        public void Add(DateTime time, decimal val, DateTime?endTime, decimal?endVal, string data)
        {
            var penSp = SeriesPropsUtil.Create(data) as PenSeriesProps;

            _items.Add(new SeriesRowItem()
            {
                Time = time, Value = val, EndTime = endTime, EndValue = endVal, Data = data, PenSp = penSp
            });
        }
Example #3
0
        public SeriesIndic(Series s, SeriesRow sr)
        {
            if (s == null || sr == null)
            {
                throw new ArgumentNullException();
            }

            _series = s;

            var        penSp = SeriesPropsUtil.Create(_series.Data) as PenSeriesProps;
            ChartBrush brush = new ChartBrush(0, 0, 255);

            if (penSp != null)
            {
                brush = new ChartBrush(penSp.Red, penSp.Green, penSp.Blue, penSp.Alpha);
            }
            _chart = new SeriesChart(sr, brush);
        }