Exemplo n.º 1
0
        public Task(TaskToDoList owner, Activity activity)
        {
            Guard.ThrowExceptionIfNull(activity, "activity");
            Guard.ThrowExceptionIfNull(owner, "owner");

            this.activity = activity;
            this.owner    = owner;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public Schedule()
 {
     this.taskToDolist = new TaskToDoList();
     this.taskCreator = new TaskCreator(this.taskToDolist);
 }
Exemplo n.º 5
0
 public Schedule()
 {
     this.taskToDolist = new TaskToDoList();
     this.taskCreator  = new TaskCreator(this.taskToDolist);
 }