public void RegisterActivity(RecurringActivity activity) { if (this.registeredActivities.Contains(activity)) { throw new InvalidOperationException("This activity is already registered."); } this.registeredActivities.Add(activity); }
public bool UnregisterActivity(RecurringActivity activity) { return this.registeredActivities.Remove(activity); }
public bool UnregisterActivity(RecurringActivity activity) { return(this.registeredActivities.Remove(activity)); }