public Task(TaskToDoList owner, Activity activity) { Guard.ThrowExceptionIfNull(activity, "activity"); Guard.ThrowExceptionIfNull(owner, "owner"); this.activity = activity; this.owner = owner; }
public TaskCreator(TaskToDoList toDoList) { Guard.ThrowExceptionIfNull(toDoList, "toDoList"); this.timer = new Timer(TimerMillisecondsInterval); this.timer.AutoReset = true; this.timer.Elapsed += TimerElapsed; this.timer.Start(); this.registeredActivities = new HashSet<RecurringActivity>(); this.toDoList = toDoList; }
public TaskCreator(TaskToDoList toDoList) { Guard.ThrowExceptionIfNull(toDoList, "toDoList"); this.timer = new Timer(TimerMillisecondsInterval); this.timer.AutoReset = true; this.timer.Elapsed += TimerElapsed; this.timer.Start(); this.registeredActivities = new HashSet <RecurringActivity>(); this.toDoList = toDoList; }
public Schedule() { this.taskToDolist = new TaskToDoList(); this.taskCreator = new TaskCreator(this.taskToDolist); }