示例#1
0
        private void ReloadChartInfo(String fromDate, String toDate)
        {
            stats.FromDate = fromDate;
            stats.ToDate   = toDate;

            AxisX.Labels             = stats.GetDates();
            ChartLineSeries.Values   = stats.GetPrices();
            ChartColumnSeries.Values = stats.GetPrices();
            ChartOHCLSeries.Values   = stats.GetPrices();
        }
示例#2
0
        private void LoadInfoToChart(object sender, RoutedEventArgs e)
        {
            stats = new StatsGetter(GetSqlConnector());
            stats.LoadInfoFromDB();

            FromDatePicker.Text = stats.GetDates()[0];
            ToDatePicker.Text   = stats.GetDates()[stats.GetDates().Count - 1];

            ReloadChartInfo(stats.GetDates()[0], stats.GetDates()[stats.GetDates().Count - 1]);
        }