public Playground(GameSession gameSession) { InitializeComponent(); this.gameSession = gameSession; UserProfile.GamaSessionId = gameSession.Id; this.riddleService = new RiddleService(); this.userService = new UserService(); this.hintHistoryService = new GameSessionUseHintHistoryService(); this.answerHistoryService = new AnswerHistoryService(); this.gameSessionService = new GameSessionService(); this.textBoxModelsList = InitTextBoxModels(); Notify = null; Notify += FunctionOfUsingHint; SurrenderNotify = null; SurrenderNotify += SurrenderAction; rivalFinishedNotify = null; rivalFinishedNotify += RivalFinishedAction; rivalExitedNotify = null; rivalExitedNotify += RivalExitedAction; this.dispose = true; this.timeTimer = new DateTime(1, 1, 1, 1, 0, 0).AddSeconds(UserProfile.Level.LevelTime); this.totalTime = new DateTime(1, 1, 1, 1, 0, 0); this.pointsForOneRiddle = 10; this.totalUserPoints = 0; this.TimeOver = null; }
public AnswerHistoryController() { this.answerHistoryService = new AnswerHistoryService(); }