Exemplo n.º 1
0
 private void OpenCandle(object obj)
 {
     if (obj != null)
     {
         var candleViewModel = new CandleChartViewModel(((QuotationModel)obj).InstrumentID);
         ChartsViewModel.Instance.Documents.Add(candleViewModel);
         ChartsViewModel.Instance.ActiveDocument = candleViewModel;
         MainViewModel.Instance.ChartIsSelected = true;
     }
 }
Exemplo n.º 2
0
 private void OpenCandle(object obj)
 {
     if (obj != null)
     {
         var candleViewModel = new CandleChartViewModel(((QuotationModel)obj).InstrumentID);
         ChartsViewModel.Instance.Documents.Add(candleViewModel);
         ChartsViewModel.Instance.ActiveDocument = candleViewModel;
         MainViewModel.Instance.ChartIsSelected  = true;
     }
 }