コード例 #1
0
 public AllTaskListModel(string project)
 {
     this.input =
         new FlatReportInput(
             new Uri(@"http://*****:*****@"//reports/ev.class" + @"?taskStyle=flat"));
     this.input.LoadTasks();
 }
コード例 #2
0
        public WeeklyTaskListModel(string project)
        {
            DateTime dateTime = DateTime.Now.Date.ToUniversalTime();

            while (dateTime.DayOfWeek != DayOfWeek.Sunday)
            {
                dateTime = dateTime.AddDays(1);
            }

            long unixTimeStamp = ToUnixTimestamp(dateTime);
            this.input = new WeeklyReportInput(new Uri(@"http://*****:*****@"//reports/week.class" + @"?eff=" + unixTimeStamp.ToString()));
            //this.input = new ReportInput(new Uri(@"http://localhost:3000/Cycle+6//reports/week.class"));
            this.input.LoadTasks();
        }