public void Generate()
 {
     this.Clear();
     StockMarketGenerator.Settings = this.Settings;
     StockMarketGenerator.Generate();
     foreach (StockMarketDataPoint dp in StockMarketGenerator.Data)
     {
         this.Add(dp);
     }
 }
Ejemplo n.º 2
0
 private void OnTimerTick(object sender, EventArgs e)
 {
     // generate new StockMarketData using StockMarketGenerator
     _lastDataPoint = StockMarketGenerator.GenerateDataPoint(_lastDataPoint);
     OnStockMarketDataReceived(_lastDataPoint);
 }