public bool Contains(TabGroupBaseCollection values)
        {
            foreach(TabGroupBase c in values)
            {
                // Use base class to process actual collection operation
                if (Contains(c))
                    return true;
            }

            return false;
        }
示例#2
0
 protected void InternalConstruct(Control control, Direction direction)
 {
     // Do we need to create our own window?
     if (control == null) 
     {
         // Yes, use a simple panel for organizing children onto
         _control = new Panel();
     }
     else
     {
         // No, use the constructor provided one
         _control = control;
     }
     
     // Hook into control events
     _control.Resize += new EventHandler(OnControlResize);
     
     // Assign initial values
     _direction = direction;
     
     // Create collection to remember our child objects
     _children = new TabGroupBaseCollection();
 }