Esempio n. 1
0
        void AddTeam(string name)
        {
            _service.AddTeam(name.Trim());

            _gaService.ReportEvent(GACategory.DealWithTeams, GAAction.Click, "team added");

            LoadTeams();
        }
Esempio n. 2
0
        public void StartTimer()
        {
            timer.OneSecond += OnTimerOneSecond;

            timer.Resume();
            IsTimerStarted = true;

            _gaService.ReportEvent(GACategory.PlayQuestion, GAAction.Timer, "start");
        }
Esempio n. 3
0
        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);
        }