示例#1
0
		public UipAnswer(UipAnswerType answerType) {
			if (answerType == UipAnswerType.Custom) {
				throw new ArgumentException("Must supply text for a custom button");
			}
			_text = answerType.ToString();
			_answerType = answerType;
		}
示例#2
0
		public UipAnswer AddAnswer(UipAnswerType answerType)
		{
			var answer = new UipAnswer(answerType);
			_possibleAnswers.Add(answer);
			return answer;
		}
示例#3
0
		public UipAnswer(string text) {
			_text = text;
			_answerType = UipAnswerType.Custom;
		}