コード例 #1
0
        private void UnpopularProd_Click(object sender, RoutedEventArgs e)
        {
            DateWindow dw = new DateWindow();

            if (dw.ShowDialog() == true)
            {
                listboxStat.ItemsSource = null;
                listboxStat.ItemsSource = _repository.UnpopularProducts(dw.Year, dw.Month);
            }
        }
コード例 #2
0
        private void TotalProfit_Click(object sender, RoutedEventArgs e)
        {
            DateWindow dw = new DateWindow();

            try
            {
                if (dw.ShowDialog() == true)
                {
                    listboxStat.ItemsSource = null;
                    listboxStat.ItemsSource = _repository.ProfitableTerminal(dw.Year, dw.Month);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }