public static void ImportData(this ProgramScheduleContent target, ProgramSchedule source)
 {
     target.SelectedQuarter     = source.SelectedQuarter;
     target.ApplySettingsForAll = source.ApplySettingsForAll;
     foreach (var oldScheduleSection in source.Sections)
     {
         var targetSection = target.CreateSection();
         targetSection.ImportData(oldScheduleSection);
         target.Sections.Add(targetSection);
     }
 }
Ejemplo n.º 2
0
 public void LoadContent(ProgramScheduleContent editedContent)
 {
     _editedContent = editedContent;
     _settingsControls.OfType <IContentSettingsControl>().ToList().ForEach(c => c.LoadContentData(_editedContent));
 }