private static List <ChartSettings0> CreateCharts(Dictionary <string, ChartSettings> symbolToSettings)
        {
            List <ChartSettings0> result = new List <ChartSettings0>();

            result.Capacity = symbolToSettings.Count;
            foreach (var element in symbolToSettings)
            {
                ChartSettings0 item = CreateChart(element.Key, element.Value);
                result.Add(item);
            }
            return(result);
        }
        private static ChartSettings CreateChart(ChartSettings0 settings)
        {
            ChartSettings result = new ChartSettings();

            result.Mode            = (RenderingMode)settings.Mode;
            result.Type            = (LineType)settings.Type;
            result.Grid            = settings.Grid;
            result.BackgroundColor = ColorSerializer.ColorFromString(settings.BackgroundColor);
            result.ForegroundColor = ColorSerializer.ColorFromString(settings.ForegroundColor);
            result.Duration        = settings.Duration;
            result.Height          = settings.Height;
            result.UpdateInterval  = settings.UpdateInterval;
            CreateLines(settings.Lines, result.Lines);
            return(result);
        }
        private static ChartSettings0 CreateChart(string symbol, ChartSettings settings)
        {
            ChartSettings0 result = new ChartSettings0();

            result.Symbol          = symbol;
            result.Mode            = (Mode0)settings.Mode;
            result.Type            = (LineType0)settings.Type;
            result.Grid            = settings.Grid;
            result.BackgroundColor = ColorSerializer.StringFromColor(settings.BackgroundColor);
            result.ForegroundColor = ColorSerializer.StringFromColor(settings.ForegroundColor);
            result.Duration        = settings.Duration;
            result.Height          = settings.Height;
            result.UpdateInterval  = settings.UpdateInterval;

            result.Lines = CreateLines(settings.Lines);

            return(result);
        }