/// <summary>Adds a new descriptor to the group.</summary> /// <param name="item">The descriptor to add.</param> public void Add(Descriptor item) { Children.Add(item); }
/// <summary>Adds a new descriptor to the group and marks it with the given bookmark.</summary> /// <param name="item">The descriptor to add.</param> /// <param name="bookmark">The bookmark to apply.</param> public void Add(Descriptor item, object bookmark) { Children.Add(item, bookmark); }
/// <summary>Merges this descriptor with selected properties from the other descriptor.</summary> /// <param name="other">The other descriptor to merge with.</param> public virtual void MergeWith(Descriptor other) { Assumption.NotNull(other); if (!HasDetails) Details = other.Details; if (!HasHelp) Help = other.Help; if (!HasIcon) Icon = other.Icon; if (!HasText) Text = other.Text; if (Subject == null) Subject = other.Subject; }