Example #1
0
        protected override void OnInitialized()
        {
            base.OnInitialized();
            _question = VotingService.Question;

            var currentResults = VotingService.GetCurrentState();

            _up       = currentResults.ThumbsUp;
            _down     = currentResults.ThumbsDown;
            _question = VotingService.Question;
            VotingService.VoteChangedEventHandler += OnVoteHasChanged;
            VotingService.ResetEventHandler       += OnReset;
        }