/// <summary>
        /// Method to go to the "Statistic" page
        /// </summary>
        /// <returns></returns>
        private async Task GoToStatistics()
        {
            StatisticsWindow page = new StatisticsWindow(UserServices, AlertServices, MaterialServices, ProductServices, MaterialsProductServices, SaleServices, await SaleServices.CountBySite(), await SaleServices.EvolutionByMonth(), await SaleServices.TotalMoneyEarn(), await SaleServices.MoneyByYear());

            page.Show();
            CurrentPage.Close();
        }
Exemplo n.º 2
0
        private void OnStatisticsButtonCommandExecuted(object p)
        {
            StatisticsWindow statisticsWindow = new StatisticsWindow();

            statisticsWindow.Owner = Application.Current.MainWindow;
            statisticsWindow.Show();
        }
Exemplo n.º 3
0
        private void createStatisticsWindow_Click(object sender, RoutedEventArgs e)
        {
            StatisticsWindow statisticWindow = new StatisticsWindow();

            statisticWindow.Show();
            this.Close();
        }
Exemplo n.º 4
0
    void OnStatisticsWindowActionActivated(object sender, System.EventArgs e)
    {
        if (!data.RomLoaded)
        {
            return;
        }

        var d = new StatisticsWindow(data);

        d.Show();
    }
Exemplo n.º 5
0
        private void btnViewStatistics_Click(object sender, RoutedEventArgs e)
        {
            if (_selectMatchId <= 0)
            {
                MessageBox.Show("请先选择对应的比赛!");
                return;
            }
            if (!_testStatisticsDic.ContainsKey(_selectMatchId))
            {
                MessageBox.Show("该比赛没有对应的统计数据!");
                return;
            }
            StatisticsWindow demo = new StatisticsWindow(_testStatisticsDic[_selectMatchId]);

            demo.Show();
        }
Exemplo n.º 6
0
        private void btnViewStatistics_Click(object sender, RoutedEventArgs e)
        {
            if (_statisticsMatch == null)
            {
                MessageBox.Show("没有统计数据,请先创建比赛!");
                return;
            }

            if (_statisticsWindow == null)
            {
                //App.Current.MainWindow = this;
                App.Current.ShutdownMode        = ShutdownMode.OnMainWindowClose;
                _statisticsWindow               = new StatisticsWindow(_statisticsMatch);
                this.willHide                   = new WillHide(this.HideWin2);
                this._statisticsWindow.Closing += new CancelEventHandler(win2_Closing);
            }
            if (!hasShow)
            {
                _statisticsWindow.Init(_statisticsMatch);
            }
            hasShow = true;
            _statisticsWindow.Show();
        }
Exemplo n.º 7
0
        public void ShowGetStatisticsWindow()
        {
            StatisticsWindow window = new StatisticsWindow(serviceManager);

            window.Show();
        }
Exemplo n.º 8
0
        private void OpenStatistics()
        {
            statisticsWindow = new StatisticsWindow(Statistics);
            statisticsWindow.Closed += CloseStatisticsWindow;

            OpenStatisticsCommand.RaiseCanExecuteChanged();

            statisticsWindow.Show();
        }
Exemplo n.º 9
0
 private void Statistics()
 {
     StatisticsWindow i = new StatisticsWindow();
     i.Show();
 }