Пример #1
0
        public void Load()
        {
            string    toto = SelectedIsins.First();
            DataTable tmp  = new DataTable();

            if (SelectedIsins.Count == 0 || SelectedDateD.Count == 0 || SelectedDateF.Count == 0 || SelectedSource == null)
            {
                return;
            }
            else
            {
                _indicateursDataSource = null;
                foreach (string s in SelectedIsins)
                {
                    tmp = _model.GetIndicateurs(s, SelectedDateD.First(), SelectedDateF.First(), SelectedSource);
                    if (_indicateursDataSource == null)
                    {
                        _indicateursDataSource = tmp;
                    }
                    else
                    {
                        _indicateursDataSource.Merge(tmp);
                    }
                }
                IndicateursDataSource = _indicateursDataSource;
            }
        }
Пример #2
0
 public void fillDataGrid()
 {
     if (param.Contains("Mobile Average"))
     {
         RatesDataSource1 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "MobileAvg3M");
     }
     if (param.Contains("Historical Average"))
     {
         RatesDataSource2 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "HistAvg");
     }
     if (param.Contains("Average"))
     {
         RatesDataSource12 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                      SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "PeriodAvg");
     }
     if (param.Contains("Volatility"))
     {
         RatesDataSource3 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "PeriodVol");
     }
     if (param.Contains("Mobile Volatility"))
     {
         RatesDataSource4 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "MobileVol3M");
     }
     if (param.Contains("Z Score"))
     {
         RatesDataSource5 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "Zscore");
     }
     if (param.Contains("Mobile Z Score"))
     {
         RatesDataSource6 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "MobileZscore3M");
     }
     if (param.Contains("Maximum"))
     {
         RatesDataSource7 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "YTM_max");
     }
     if (param.Contains("Maximum 5%"))
     {
         RatesDataSource8 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "YTM_max5pc");
     }
     if (param.Contains("Minimum"))
     {
         RatesDataSource9 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                     SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "YTM_min");
     }
     if (param.Contains("Minimum 5%"))
     {
         RatesDataSource10 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                      SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "YTM_min5pc");
     }
     if (param.Contains("Closing Price"))
     {
         RatesDataSource11 = _model.GetGraphProcedure(SelectedIsins.First(),
                                                      SelectedDateD.First(), SelectedDateF.First(), SelectedSource, "YTM_close");
     }
 }