public YahooFScraper(InputVM inputVm) { _inputVm = inputVm; }
public FinDataAdapter(InputVM inputVm, FinAnalysisVM finAnalysisVm, string symbol, DataSource dataSource, string fileName) : this(finAnalysisVm, symbol, dataSource) { _xmlFile = fileName; _inputVm = inputVm; }
// 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; }