Exemple #1
0
 public YahooFScraper(InputVM inputVm)
 {
     _inputVm = inputVm;
 }
Exemple #2
0
 public FinDataAdapter(InputVM inputVm, FinAnalysisVM finAnalysisVm, string symbol, DataSource dataSource, string fileName)
     : this(finAnalysisVm, symbol, dataSource)
 {
     _xmlFile = fileName;
     _inputVm = inputVm;
 }
Exemple #3
0
        // Kui MainWindow sisu on renderdatud, siis saab kujunduselemente sättida, ilma et tekiks probleeme.
        // Näiteks ComboBoxis, kui default item on valitud, siis see tekitab akna laadimisel SelectionChanged eventi.
        public void MainWindow_ContentRendered(object sender, EventArgs e)
        {
            _akenOnLaetud = true;
            ComboBoxItem cbi = (comboDataSource.SelectedItem as ComboBoxItem);
            comboDataSource.SelectedItem = null;
            comboDataSource.SelectedItem = cbi;

            _inputVm = new InputVM();
            _inputVm.LoadCompanyData();
            listViewCompanyDetails.DataContext = _inputVm;

            _dcfVM = new DcfVM(_dci);
            elementUserInputDatas.DataContext = _dcfVM;
        }