Пример #1
0
 private void ComboBox_Loaded(object sender, RoutedEventArgs e)
 {
     currenciesComboBox.ItemsSource       = CurrencyFileMgr.GetCurrencies();
     currenciesComboBox.DisplayMemberPath = "Value";
     currenciesComboBox.SelectedValuePath = "Key";
     currenciesComboBox.SelectedIndex     = 1;
 }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var currencyList = CurrencyFileMgr.GetCurrenciesWeb(int.Parse(currenciesComboBox.SelectedValue.ToString()),
                                                                startDate.SelectedDate.Value, endDate.SelectedDate.Value);
            //var currencyList = CurrencyFileMgr.GetCurrenciesCsv(csvPathTextBox.Text);

            GraphWindow graphWindow = new GraphWindow(currencyList);

            graphWindow.ShowDialog();
        }