void AddTeam(string name) { _service.AddTeam(name.Trim()); _gaService.ReportEvent(GACategory.DealWithTeams, GAAction.Click, "team added"); LoadTeams(); }
public void StartTimer() { timer.OneSecond += OnTimerOneSecond; timer.Resume(); IsTimerStarted = true; _gaService.ReportEvent(GACategory.PlayQuestion, GAAction.Timer, "start"); }
public void SubmitResults() { OnViewDestroying(); try { foreach (var team in Teams.Where(t => t.AnsweredCorrectly)) { _teamsService.IncrementScore(_questionId, team.ID); } foreach (var team in Teams.Where(t => !t.AnsweredCorrectly)) { _teamsService.DecrementScore(_questionId, team.ID); } } catch (Exception e) { Mvx.Trace(e.Message); } _gaService.ReportEvent(GACategory.PlayQuestion, GAAction.Click, "results submitted"); Close(this); }