public Question(Quizz quizz, string enonce, List <Answer> otherAnsweres, AnswereType type) { Type = type; Enonce = enonce; OtherAnsweres = otherAnsweres; MyQuizz = quizz; IdQuizz = MyQuizz.IdQuizz; }
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { answereType = (AnswereType)DropDownList1.SelectedIndex; }