/// <summary> /// Создание контроллов. /// </summary> private void CreateControls() { CreatePersonControl = new CreatePersonControl(); ProfilPersonControl = new ProfilPersonControl(); StoryControl = new StoryControl(); AchievementControl = new AchievementControl(); FightChoiceControl = new FightChoiceControl(); FightControl = new FightControl(); AdjustControls(CreatePersonControl, ProfilPersonControl, StoryControl, FightChoiceControl, FightControl, AchievementControl); }
public FightPresenter(MainPresenter mainPresenter, IFightChoiceControl fightChoiceControl, IFightControl fightControl, BattlePresenter battlePresenter) { MainPresenter = mainPresenter; FightChoiceControl = fightChoiceControl; BattlePresenter = battlePresenter; FightChoiceControl.FightButtonClick += FightButtonClick; FightChoiceControl.InformationButtonClick += InformationButtonClick; fightChoiceControl.ChangeButtonClick += ChangeButtonClick; FightControl = fightControl; ChangeButtonClick(); }