Beispiel #1
0
        /// <summary>
        /// Refreshes the chart asynchronously
        /// </summary>
        private void refreshChartAsync(string searchSymbol)
        {
            tooltip.RemoveAll();
            MoneyMakerView view = new StockChartView(stock, webFinanceStrategy, startDate, endDate);

            view.Dock = DockStyle.Fill;
            Parent.Controls.Add(view);
            Parent.Controls.Remove(this);
        }
Beispiel #2
0
 /// <summary>
 /// Draws the chart for stock
 /// </summary>
 private void drawChart(StockListitem stockItem = null)
 {
     panelChart.Controls.Clear();
     if (stockItem != null)
     {
         MoneyMakerView view = new StockChartView(stockItem, webFinanceStrategy, startDate, endDate);
         view.Dock = DockStyle.Fill;
         panelChart.Controls.Add(view);
     }
 }