예제 #1
0
        public void RegisterActivity(RecurringActivity activity)
        {
            if (this.registeredActivities.Contains(activity))
            {
                throw new InvalidOperationException("This activity is already registered.");
            }

            this.registeredActivities.Add(activity);
        }
예제 #2
0
        public void RegisterActivity(RecurringActivity activity)
        {
            if (this.registeredActivities.Contains(activity))
            {
                throw new InvalidOperationException("This activity is already registered.");
            }

            this.registeredActivities.Add(activity);
        }
예제 #3
0
 public bool UnregisterActivity(RecurringActivity activity)
 {
     return this.registeredActivities.Remove(activity);
 }
예제 #4
0
 public bool UnregisterActivity(RecurringActivity activity)
 {
     return(this.registeredActivities.Remove(activity));
 }