public StatisticView()
        {
            viewModel   = new StatisticViewModel();
            DataContext = viewModel;

            InitializeComponent();

            MonthView.Visibility = System.Windows.Visibility.Visible;
            WeekView.Visibility  = System.Windows.Visibility.Collapsed;
            DayView.Visibility   = System.Windows.Visibility.Collapsed;
        }
        public StatisticView()
        {
            viewModel   = new StatisticViewModel();
            DataContext = viewModel;

            InitializeComponent();

            MonthView.Visibility = System.Windows.Visibility.Visible;
            WeekView.Visibility  = System.Windows.Visibility.Collapsed;
            DayView.Visibility   = System.Windows.Visibility.Collapsed;

            viewModel.SalesUpdated += MonthView.ViewModel.UpdateSales;
            viewModel.SalesUpdated += DayView.ViewModel.UpdateSales;

            viewModel.Udpate();
        }