コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public TimesheetWindow(IEnumerable<TimeRecordBase> records)
 {
     InitializeComponent();
     Model = new TimesheetModel(records);
 }
コード例 #4
0
 public TimesheetWindow(IEnumerable <TimeRecordBase> records)
 {
     InitializeComponent();
     Model = new TimesheetModel(records);
 }