Example #1
0
        /// <summary>
        /// Creates a stock UI object from a configuration
        /// </summary>
        /// <param name="cfg">The configuration</param>
        /// <returns>The corresponding stock UI object</returns>
        public static StockChartPanel LoadConfig(StockUIConfig cfg)
        {
            StockChartPanel newUi = new StockChartPanel(cfg.Symbol);

            newUi.Canvas.Size = new System.Drawing.Size(newUi.Canvas.Width, cfg.Height);

            return(newUi);
        }
Example #2
0
 public StockUIConfig(StockChartPanel ui)
 {
     this.Symbol = ui.Symbol;
     this.Height = ui.Canvas.Height;
 }