예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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;
 }