示例#1
0
        private System.Threading.Tasks.Task getLatest(Schedule schedule)
        {
            DateTime?next = schedule.next();

            if (next != null)
            {
                if (!conf.RunInForeground)
                {
                    setLine1("Task installed and will next run at " + next.Value);
                    //setLine2("Latest is " + fetcher.lastWeHave());
                }
            }
            return(fetcher.showLatest());
        }
示例#2
0
        private System.Threading.Tasks.Task getLatest(ScheduleInstaller schedule)
        {
            DateTime?next = schedule.nextRun();

            if (next != null)
            {
                setLine1("Task installed and will next run at " + next.Value);
                //setLine2("Latest is " + fetcher.lastWeHave());
                taskInstalled   = true;
                buttonRfTS.Text = "Update Task Scheduler";
            }
            else
            {
                buttonRfTS.Text = "Install Task";
            }
            return(fetcher.showLatest());
        }