public static void ImportData( this Business.Media.Entities.NonPersistent.Option.OptionsContent target, RegularSchedule source) { foreach (var oldOptionSet in source.Options) { var optionSet = new Business.Media.Entities.NonPersistent.Option.OptionSet(target); optionSet.ImportData(oldOptionSet); target.Options.Add(optionSet); } target.OptionsSummary.ImportData(source.OptionsSummary); }
public static void ImportData( this Business.Media.Entities.NonPersistent.Option.OptionsContent target, RegularSchedule source) { foreach (var oldOptionSet in source.Options) { var optionSet = new Business.Media.Entities.NonPersistent.Option.OptionSet(target); optionSet.ImportData(oldOptionSet); target.Options.Add(optionSet); } target.OptionsSummary.ImportData(source.OptionsSummary); }
private static void ImportData( this Business.Media.Entities.NonPersistent.Option.OptionSet target, Legacy.Media.Entities.Options.OptionSet source) { target.Index = source.Index; target.Name = source.Name; target.Comment = source.Comment; target.Logo.ImportData(source.Logo); target.TotalPeriods = source.TotalPeriods; target.ShowLineId = source.ShowLineId; target.ShowLogo = source.ShowLogo; target.ShowStation = source.ShowStation; target.ShowProgram = source.ShowProgram; target.ShowDay = source.ShowDay; target.ShowTime = source.ShowTime; target.ShowRate = source.ShowRate; target.ShowLenght = source.ShowLenght; target.ShowSpots = source.ShowSpots; target.ShowCost = source.ShowCost; target.ShowSpotsX = source.ShowSpotsX; target.UseDecimalRates = source.UseDecimalRates; target.ShowTotalSpots = source.ShowTotalSpots; target.ShowTotalCost = source.ShowTotalCost; target.ShowAverageRate = source.ShowAverageRate; target.SpotType = (Business.Media.Enums.SpotType)(Int32) source.SpotType; target.ContractSettings.ImportData(source.ContractSettings); foreach (var oldProgram in source.Programs) { var program = new Business.Media.Entities.NonPersistent.Option.OptionProgram(target); program.ImportData(oldProgram); target.Programs.Add(program); } }