예제 #1
0
 public void UpdateQuestionList(QuestionList QLObject, int index, Question newQ)
 {
     QLObject.Questions[index] = new Question
     {
         QuestionId = newQ.QuestionId,
         Category = newQ.Category,
         Rating = newQ.Rating
     };
 }
예제 #2
0
 public List<Question> GetQuestionList(QuestionList QLObject)
 {
     return QLObject.Questions;
 }
예제 #3
0
 public void DeleteQuestionList(QuestionList QLObject)
 {
     QLObject.Questions.Clear();
 }