/// <summary> /// Adds the type of the activity. /// </summary> /// <returns>A VisitTemplateActivityType.</returns> public virtual VisitTemplateActivityType AddActivityType() { var activityType = new VisitTemplateActivityType(this); _activityTypes.Add(activityType); NotifyItemAdded(() => ActivityTypes, activityType); return(activityType); }
/// <summary> /// Adds the type of the activity. /// </summary> /// <returns>A VisitTemplateActivityType.</returns> public virtual VisitTemplateActivityType AddActivityType() { var activityType = new VisitTemplateActivityType ( this ); _activityTypes.Add ( activityType ); NotifyItemAdded ( () => ActivityTypes, activityType ); return activityType; }