Example #1
0
 public IndicatorDataSeries(Color color, string name, IndicatorChartPaintType paintType, bool isPaint)
 {
     Name           = name;
     Color          = color;
     ChartPaintType = paintType;
     IsPaint        = isPaint;
 }
Example #2
0
        public string CreateSeries(string areaName, IndicatorChartPaintType indicatorType, string seria_name)
        {
            if (series.Exists(x => (string)x.SeriaName == seria_name))
            {
                return(seria_name);
            }

            var new_seria = new IndicatorSeria()
            {
                AreaName      = areaName,
                IndicatorType = indicatorType,
                SeriaName     = seria_name,
                BotTab        = this.bot_tab
            };

            if (!series.Contains(new_seria))
            {
                series.Add(new IndicatorSeria()
                {
                    AreaName      = areaName,
                    IndicatorType = indicatorType,
                    SeriaName     = seria_name,
                    BotTab        = this.bot_tab
                });
            }

            return(seria_name);
        }
Example #3
0
        public IndicatorDataSeries CreateSeries(string name, Color color,
                                                IndicatorChartPaintType chartPaintType, bool isPaint)
        {
            if (DataSeries.Find(val => val.Name == name) != null)
            {
                return(DataSeries.Find(val => val.Name == name));
            }

            IndicatorDataSeries newSeries = new IndicatorDataSeries(color, name, chartPaintType, isPaint);

            DataSeries.Add(newSeries);
            CheckSeriesParamsInSaveData(newSeries);

            return(newSeries);
        }