ResetNotebook() private method

private ResetNotebook ( ) : void
return void
Exemplo n.º 1
0
 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);
             }
         }
     }
 }
Exemplo n.º 2
0
		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);
				}
			}
		}