Exemplo n.º 1
0
        private void AnswerRight()
        {
            bool right = false;

            foreach (var s in _data.PersonDataExtensions.Right)
            {
                right = AnswerChecker.IsAnswerRight(_data.PersonDataExtensions.Answer, s);
                if (right)
                {
                    break;
                }
            }

            _viewerActions.SendMessage(Messages.IsRight, right ? "+" : "-");
        }
Exemplo n.º 2
0
        private void AnswerRight()
        {
            bool right = false;

            foreach (var s in _data.PersonDataExtensions.Right)
            {
                right = AnswerChecker.IsAnswerRight(_data.PersonDataExtensions.Answer, s);
                if (right)
                {
                    break;
                }
            }

            if (right)
            {
                _actor.SendMessage(Messages.IsRight, "+");
            }
            else
            {
                _actor.SendMessage(Messages.IsRight, "-");
            }
        }