private void ExecuteSelectMonthCommand()
        {
            SearchParameter searchParam  = new SearchParameter(_year, _month);
            ResultWindow    resultWindow = new ResultWindow();

            resultWindow.resultList.DataContext = new OrderItemDataProvider(OrderItemType.Results, searchParam);
            resultWindow.ShowDialog();
        }
Ejemplo n.º 2
0
        private void ExecuteFindItemsCommand(object param)
        {
            SearchParameter searchParam  = new SearchParameter(OrderItemType.Resolved, param.ToString());
            ResultWindow    resultWindow = new ResultWindow();

            resultWindow.Title = string.Format("Výsledek hledání: {0}", param.ToString());
            resultWindow.resultList.DataContext = new OrderItemDataProvider(OrderItemType.Results, searchParam);
            resultWindow.Width = ModelFactory.Configuration.GetInt("CurrentWidth");
            resultWindow.ShowDialog();
        }
Ejemplo n.º 3
0
        private void ExecuteFindItemsCommand(object param)
        {
            OrderItemType   searchType  = ((_dockingManager.ActiveContent as OrderItemList).DataContext as OrderItemDataProvider).ItemType;
            SearchParameter searchParam = new SearchParameter(searchType, param.ToString());
            Action          postAction  = null;

            if (searchParam.ItemType == OrderItemType.Unresolved)
            {
                postAction = () => ResolvedListDataProvider.NotifyPropertyChanged("Data");
            }
            ResultWindow resultWindow = new ResultWindow();

            resultWindow.Title = string.Format("Výsledek hledání: {0}", param.ToString());
            resultWindow.resultList.DataContext = new OrderItemDataProvider(OrderItemType.Results, searchParam, postAction);
            resultWindow.Width = _mainWindow.Width;
            resultWindow.ShowDialog();
        }
Ejemplo n.º 4
0
        private void GameFinishedHandler(string status)
        {
            ResultWindow result = new ResultWindow(status);

            result.OnStartWithAI += () =>
            {
                gameGateway.SpriteManager = spriteManager;
                gameGateway.StartGame();
            };
            result.OnStartWithNetUser += () => { MessageBox.Show("Comming soon"); };
            result.OnAboutShow        += () =>
            {
                About about = new About();
                about.ShowDialog();
            };
            result.OnExit += () => { _exitCommand = true; };
            result.ShowDialog();
        }