Пример #1
0
        private async Task CreateNewChampionship()
        {
            if (_championshipCreationController != null)
            {
                _championshipCreationController.TryFocusCreationWindow();
                return;
            }

            _championshipCreationController = _childControllerFactory.Create <IChampionshipCreationController, IChampionshipOverviewController>(this);
            await _championshipCreationController.StartControllerAsync();

            _championshipCreationController.OpenChampionshipCreationDialog(NewChampionshipCreated, ChampionshipCreationCancelled);
        }
Пример #2
0
 private void NewChampionshipCreated(ChampionshipDto newChampionshipDto)
 {
     _championshipsPool.AddNewChampionship(newChampionshipDto);
     _championshipCreationController.StopControllerAsync();
     _championshipCreationController = null;
 }
Пример #3
0
 private void ChampionshipCreationCancelled()
 {
     _championshipCreationController.StopControllerAsync();
     _championshipCreationController = null;
 }