void GetTabbedGroups(DockGroup grp, List <DockGroup> tabbedGroups) { if (grp.Type == DockGroupType.Tabbed) { if (grp.VisibleObjects.Count > 1) { tabbedGroups.Add(grp); } else { grp.ResetNotebook(); } } else { // Make sure it doesn't have a notebook bound to it grp.ResetNotebook(); foreach (DockObject ob in grp.Objects) { if (ob is DockGroup) { GetTabbedGroups((DockGroup)ob, tabbedGroups); } } } }
void GetTabbedGroups (DockGroup grp, List<DockGroup> tabbedGroups) { if (grp.Type == DockGroupType.Tabbed) { if (grp.VisibleObjects.Count > 1) tabbedGroups.Add (grp); else grp.ResetNotebook (); } else { // Make sure it doesn't have a notebook bound to it grp.ResetNotebook (); foreach (DockObject ob in grp.Objects) { if (ob is DockGroup) GetTabbedGroups ((DockGroup) ob, tabbedGroups); } } }