示例#1
0
        public InstructorNote(string markdown, Unit unit, FileInfo file, CourseLoadingContext courseLoadingContext, int slideIndex)
        {
            Markdown = markdown;
            Unit     = unit;
            File     = file;
            Slide    = new Slide(new MarkdownBlock(Markdown)
            {
                Hide = true
            })
            {
                Id    = Unit.Id,
                Title = "Заметки преподавателю"
            };
            var slideLoadingContext = new SlideLoadingContext(courseLoadingContext, unit, file, slideIndex);

            Slide.BuildUp(slideLoadingContext);
            Slide.Validate(slideLoadingContext);
        }