public IndicatorDataSeries(Color color, string name, IndicatorChartPaintType paintType, bool isPaint) { Name = name; Color = color; ChartPaintType = paintType; IsPaint = isPaint; }
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); }
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); }