Beispiel #1
0
        /// <summary>
        /// Creates a deep copy of this object. Items contained in its properties will also be deep copies.
        /// </summary>
        /// <returns></returns>
        public BonusRound Copy()
        {
            BonusRound ret = new BonusRound();

            ret.BonusQuestions.AddRange(mBonusQuestions.Select(item => new BonusQuestion(item.Question.Copy(), item.Answer.Copy())));

            return(ret);
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a Question object with the given question value
 /// </summary>
 /// <param name="questionText">
 /// Question string that will be displayed.
 /// </param>
 public Game(IEnumerable <Round> rounds, BonusRound bonusRound = null)
 {
     mBonusRound = bonusRound;
     mRounds     = new ObservableCollection <Round>(rounds);
 }
Beispiel #3
0
 /// <summary>
 /// Default constructor, initializes a Question object with an empty question text
 /// </summary>
 public Game()
 {
     mBonusRound = null;
     mRounds     = new ObservableCollection <Round>();
 }