Beispiel #1
0
        //Constructor for get Questions
        public rQuestion(int Auswahl)
        {
            Questions questions = ctx.Questions.Where(x => x.qID.Equals(Auswahl)).FirstOrDefault();

            qID     = questions.qID;
            qText   = questions.questionTEXT;
            results = new qResults(Auswahl);
        }
Beispiel #2
0
 //Constructor for add Questions
 public rQuestion(string question, Dictionary <string, string> results)
 {
     this.qText   = question;
     this.results = new qResults(results);
 }