/// <summary> /// Adds a new child to the list of children. /// </summary> /// <param name="entry">The new child entry.</param> /// <returns><c>true</c> if the entry was added successfully; otherwise <c>false</c>.</returns> public bool AddToGroupList(DialogEntry entry) { if (entry != null) { var entryStat = entry.Status; lock (SyncLock) { try { if (ChildEntries.Contains(entry)) { return(false); } ChildEntries.Add(entry); registerToEvents(entry); entry.ParentEntry = this; entry.ParentDialog = ParentDialog; } catch { } } // reset and set again to use the (entry)internal logic for the status. entry.Status = DialogEntryStatus.Normal; entry.Status = entryStat; fire_DialogEntryChanged("ChildEntries"); return(true); } return(false); }
public void AddChild(BuildEntry entry) { ChildEntries.Add(entry); entry.Parent = this; }
public void AddChild(TimelineEntry entry) { ChildEntries.Add(entry); entry.Parent = this; }