public TimesheetWindow()
 {
     InitializeComponent();
     var recs = new List<WorkItemTimeRecord>();
     var baseDate = new DateTime(2015, 10, 26);
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddHours(2), EndTime = baseDate.Date.AddHours(4) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddHours(1), EndTime = baseDate.Date.AddHours(4) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddHours(4), EndTime = baseDate.Date.AddHours(6) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddHours(8), EndTime = baseDate.Date.AddHours(12) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddDays(1).AddHours(1), EndTime = baseDate.Date.AddDays(1).AddHours(3) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddDays(1), EndTime = baseDate.Date.AddDays(1).AddHours(3) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddDays(1).AddHours(3), EndTime = baseDate.Date.AddDays(1).AddHours(5) });
     recs.Add(new Timekeeper.Entities.WorkItemTimeRecord() { StartTime = baseDate.Date.AddDays(1).AddHours(8), EndTime = baseDate.Date.AddDays(1).AddHours(12) });
     Model = new TimesheetModel(recs);
 }
        public TimesheetWindow()
        {
            InitializeComponent();
            var recs     = new List <WorkItemTimeRecord>();
            var baseDate = new DateTime(2015, 10, 26);

            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddHours(2), EndTime = baseDate.Date.AddHours(4)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddHours(1), EndTime = baseDate.Date.AddHours(4)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddHours(4), EndTime = baseDate.Date.AddHours(6)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddHours(8), EndTime = baseDate.Date.AddHours(12)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddDays(1).AddHours(1), EndTime = baseDate.Date.AddDays(1).AddHours(3)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddDays(1), EndTime = baseDate.Date.AddDays(1).AddHours(3)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddDays(1).AddHours(3), EndTime = baseDate.Date.AddDays(1).AddHours(5)
            });
            recs.Add(new Timekeeper.Entities.WorkItemTimeRecord()
            {
                StartTime = baseDate.Date.AddDays(1).AddHours(8), EndTime = baseDate.Date.AddDays(1).AddHours(12)
            });
            Model = new TimesheetModel(recs);
        }
 public TimesheetWindow(IEnumerable<TimeRecordBase> records)
 {
     InitializeComponent();
     Model = new TimesheetModel(records);
 }
 public TimesheetWindow(IEnumerable <TimeRecordBase> records)
 {
     InitializeComponent();
     Model = new TimesheetModel(records);
 }