public TrackingDayControl(TrackingDay day)
 {
     InitializeComponent();
     Day         = day;
     DataContext = Day;
     Day.Control = this;
 }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
 public void RemoveDay(TrackingDay day)
 {
     TrackingDays.Remove(day);
 }
 public void AddDayControl(TrackingDay day)
 {
     DayControls.Add(new TrackingDayControl(day));
 }
Ejemplo n.º 5
0
 public void AddDay(TrackingDay day)
 {
     Window.AddDayControl(day);
     TrackingDays.Add(day);
     day.Update();
 }