public TrackingDayControl(TrackingDay day) { InitializeComponent(); Day = day; DataContext = Day; Day.Control = this; }
private void Export(TrackingDay day, Worksheet worksheet) { // output the day OutputText(day.Day.ToString("ddd, MMM dd"), 0, 1, _curRow, worksheet); // output each shift foreach (var trackingShift in day.Shifts) { Export(trackingShift, worksheet); ++_curRow; } }
public void RemoveDay(TrackingDay day) { TrackingDays.Remove(day); }
public void AddDayControl(TrackingDay day) { DayControls.Add(new TrackingDayControl(day)); }
public void AddDay(TrackingDay day) { Window.AddDayControl(day); TrackingDays.Add(day); day.Update(); }