private async Task CreateNewChampionship() { if (_championshipCreationController != null) { _championshipCreationController.TryFocusCreationWindow(); return; } _championshipCreationController = _childControllerFactory.Create <IChampionshipCreationController, IChampionshipOverviewController>(this); await _championshipCreationController.StartControllerAsync(); _championshipCreationController.OpenChampionshipCreationDialog(NewChampionshipCreated, ChampionshipCreationCancelled); }
private void NewChampionshipCreated(ChampionshipDto newChampionshipDto) { _championshipsPool.AddNewChampionship(newChampionshipDto); _championshipCreationController.StopControllerAsync(); _championshipCreationController = null; }
private void ChampionshipCreationCancelled() { _championshipCreationController.StopControllerAsync(); _championshipCreationController = null; }