示例#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;
 }