private static LineSettings CreateLine(LineSettings0 settings) { LineSettings result = new LineSettings(); result.Volume = settings.Volume; result.BidColor = ColorSerializer.ColorFromString(settings.BidColor); result.AskColor = ColorSerializer.ColorFromString(settings.AskColor); return(result); }
private static LineSettings0 CreateLine(LineSettings settings) { LineSettings0 result = new LineSettings0(); result.BidColor = ColorSerializer.StringFromColor(settings.BidColor); result.AskColor = ColorSerializer.StringFromColor(settings.AskColor); result.Volume = settings.Volume; return(result); }
private static void CreateLines(List <LineSettings0> settings, List <LineSettings> lines) { lines.Capacity = settings.Count; foreach (var element in settings) { LineSettings item = CreateLine(element); lines.Add(item); } }
internal ChartSettings(ChartSettings settings) { if (null == settings) { throw new ArgumentNullException("settings"); } this.m_backgroundColor = settings.m_backgroundColor; this.m_foregoundColor = settings.m_foregoundColor; this.Mode = settings.Mode; this.Type = settings.Type; this.m_duration = settings.m_duration; this.m_height = settings.m_height; this.m_updateInterval = settings.m_updateInterval; this.Grid = settings.Grid; this.Lines = new List <LineSettings>(); this.Lines.Capacity = settings.Lines.Count; foreach (var element in settings.Lines) { LineSettings line = new LineSettings(element); this.Lines.Add(line); } }
internal ChartSettings(ChartSettings settings) { if (null == settings) { throw new ArgumentNullException("settings"); } this.m_backgroundColor = settings.m_backgroundColor; this.m_foregoundColor = settings.m_foregoundColor; this.Mode = settings.Mode; this.Type = settings.Type; this.m_duration = settings.m_duration; this.m_height = settings.m_height; this.m_updateInterval = settings.m_updateInterval; this.Grid = settings.Grid; this.Lines = new List<LineSettings>(); this.Lines.Capacity = settings.Lines.Count; foreach (var element in settings.Lines) { LineSettings line = new LineSettings(element); this.Lines.Add(line); } }
private static LineSettings CreateLine(LineSettings0 settings) { LineSettings result = new LineSettings(); result.Volume = settings.Volume; result.BidColor = ColorSerializer.ColorFromString(settings.BidColor); result.AskColor = ColorSerializer.ColorFromString(settings.AskColor); return result; }
private static LineSettings0 CreateLine(LineSettings settings) { LineSettings0 result = new LineSettings0(); result.BidColor = ColorSerializer.StringFromColor(settings.BidColor); result.AskColor = ColorSerializer.StringFromColor(settings.AskColor); result.Volume = settings.Volume; return result; }
internal LineSettings(LineSettings settings) { this.Volume = settings.Volume; this.m_bidColor = settings.m_bidColor; this.m_askColor = settings.m_askColor; }