Beispiel #1
0
		public OptionSet(RegularSchedule parent)
		{
			UniqueID = Guid.NewGuid();
			TotalPeriods = 1;
			Programs = new List<OptionProgram>();
			ContractSettings = new ContractSettings();
		}
Beispiel #2
0
		public Snapshot(RegularSchedule parent)
		{
			UniqueID = Guid.NewGuid();
			Programs = new List<SnapshotProgram>();
			ActiveWeeks = new List<DateRange>();
			ContractSettings = new ContractSettings();
		}
		protected ScheduleSection(ProgramSchedule parent)
		{
			Parent = parent;
			UniqueID = Guid.NewGuid();
			Index = parent.Sections.Any() ? parent.Sections.Max(s => s.Index) + 1 : 0;
			Programs = new List<Program>();
			Summary = new SectionSummary(this);
			ContractSettings = new ContractSettings();

			#region Options
			ShowTime = true;
			ShowDaypart = true;
			ShowDay = true;
			ShowStation = true;
			ShowProgram = true;
			ShowLenght = false;
			ShowSpots = true;
			ShowEmptySpots = false;
			ShowCost = true;
			ShowLogo = false;

			ShowTotalPeriods = true;
			ShowTotalSpots = true;
			ShowAverageRate = true;
			ShowTotalRate = true;
			ShowNetRate = false;
			ShowDiscount = false;
			#endregion
		}
		public OptionSummary()
		{
			ApplySettingsForAll = false;
			ContractSettings = new ContractSettings();
		}
		public SnapshotSummary(RegularSchedule parent)
		{
			ApplySettingsForAll = false;

			ContractSettings = new ContractSettings();
		}