/// <summary> /// Initializes a new instance of the <see cref="Lesson" /> class. /// To be properly instanciated, the lesson need a name, the path of the PDF and the current number of pages of this /// document. /// </summary> /// <param name="name">The name.</param> /// <param name="nbPages">The nb pages.</param> public Lesson(string name, int nbPages) { Name = name; // Preparation of the slides Slides = new SlideHolder(); for (var i = 0; i < nbPages; i++) Slides.AddNewContent(); Slides.AddLayer("Mes notes"); // Preparation of the global notes (free note zone) GlobalNotes = new GlobalNotesHolder(); GlobalNotes.AddNewContent("Default"); GlobalNotes.AddLayer("Notes libres"); // Preparation of the exercice holder Exercises = new ExerciseHolder(); // Test, adding one quiz layer var exFactory = new ExerciseContent.ExerciseFactory(Exercises); ExerciseContent ex = exFactory.GetQCM("QCM Démonstration"); (ex as QuizContent).AddQuestionLayer("Question"); (ex as QuizContent).AddAnswerLayer("Réponse"); Exercises.Contents.Add(ex); }
public override void AddIt(BasicHolder holder) { var factory = new ExerciseContent.ExerciseFactory(holder as ExerciseHolder); var content = factory.GetGraphical(ExerciseName /*, Width, Height*/); content.ImportLayer(Layer); content.AddLayer("Votre réponse"); content.UID = UID; holder.Contents.Add(content); }
public override void AddIt(BasicHolder holder) { var factory = new ExerciseContent.ExerciseFactory(holder as ExerciseHolder); QuizContent content; if (Mode == QuizMode.QCM) content = factory.GetQCM(ExerciseName); else content = factory.GetQCU(ExerciseName); content.ImportLayer(Layer); content.Bullets = Bullets; content.UID = UID; holder.Contents.Add(content); }