예제 #1
0
 public ExerciseSlide(
     List <SlideBlock> blocks,
     SlideInfo slideInfo,
     string title, string id)
     : base(blocks, slideInfo, title, id)
 {
     MaxScore = 5;
     Exercise = blocks.OfType <ExerciseBlock>().SingleOrDefault();
 }
예제 #2
0
		public ExerciseSlide(
			List<SlideBlock> blocks,
			SlideInfo slideInfo,
			string title, Guid id)
			: base(blocks, slideInfo, title, id)
		{
			Exercise = blocks.OfType<ExerciseBlock>().Single();
			MaxScore = Exercise.MaxScore;
		}
예제 #3
0
		public ExerciseSlide(
			List<SlideBlock> blocks,
			SlideInfo slideInfo,
			string title, string id)
			: base(blocks, slideInfo, title, id)
		{
			MaxScore = 5;
			Exercise = blocks.OfType<ExerciseBlock>().SingleOrDefault();
		}
예제 #4
0
 public ExerciseSlide(
     List <SlideBlock> blocks,
     SlideInfo slideInfo,
     string title, Guid id)
     : base(blocks, slideInfo, title, id)
 {
     Exercise     = blocks.OfType <ExerciseBlock>().Single();
     MaxScore     = Exercise.MaxScore;
     ScoringGroup = Exercise.ScoringGroup ?? "";
 }
예제 #5
0
파일: Slide.cs 프로젝트: andgein/uLearn
		public Slide(IEnumerable<SlideBlock> blocks, SlideInfo info, string title, string id)
		{
			try
			{
				Info = info;
				Title = title;
				Id = id;
				MaxScore = 0;
				Blocks = blocks.ToArray();
				foreach (var block in Blocks)
					block.Validate();
			}
			catch (Exception e)
			{
				throw new FormatException(string.Format("Error in slide {0} (id: {1}). {2}", title, id, e.Message), e);
			}
		}
예제 #6
0
 public Slide(IEnumerable <SlideBlock> blocks, SlideInfo info, string title, string id)
 {
     try
     {
         Info     = info;
         Title    = title;
         Id       = id;
         MaxScore = 0;
         Blocks   = blocks.ToArray();
         foreach (var block in Blocks)
         {
             block.Validate();
         }
     }
     catch (Exception e)
     {
         throw new FormatException(string.Format("Error in slide {0} (id: {1}). {2}", title, id, e.Message), e);
     }
 }
예제 #7
0
파일: Slide.cs 프로젝트: epeshk/uLearn
 public Slide(IEnumerable <SlideBlock> blocks, SlideInfo info, string title, Guid id)
 {
     try
     {
         Info         = info;
         Title        = title;
         Id           = id;
         MaxScore     = 0;
         Blocks       = blocks.ToArray();
         ScoringGroup = "";
         foreach (var block in Blocks)
         {
             block.Validate();
         }
     }
     catch (Exception e)
     {
         throw new FormatException($"Error in slide {title} (id: {id}). {e.Message}", e);
     }
 }