//*********************************************************************
 //
 // ContentsPanel.ShowDetails Method
 //
 // The ShowDetails method switches the control into Details view,
 // and makes the specified child pane active. Child panes can
 // call this method to activate themselves.
 //
 //*********************************************************************
 public void ShowDetails(IPanelPane pane)
 {
     SummaryView = false;
     ActivePane = pane;
 }
 //*********************************************************************
 //
 // PanelPaneCollection.AddInternal Method
 //
 // Adds a pane to the collection, but does not add it to the parent's
 // controls. This is called by the parent control itself to add
 // panes.
 //
 //*********************************************************************
 internal void AddInternal(IPanelPane pane)
 {
     _items.Add(pane);
 }
 //*********************************************************************
 //
 // PanelPaneCollection.IndexOf Method
 //
 // Returns the index of a given pane.
 //
 //*********************************************************************
 public int IndexOf(IPanelPane pane)
 {
     return _items.IndexOf(pane);
 }
 //*********************************************************************
 //
 // PanelPaneCollection.Remove Method
 //
 // Removes a pane from the collection.
 //
 //*********************************************************************
 public void Remove(IPanelPane pane)
 {
     // Remove the pane from the parent's child controls collection.
     _parent.Controls.Remove((Control) pane);
     _items.Remove(pane);
 }
 //*********************************************************************
 //
 // PanelPaneCollection.Add Method
 //
 // Adds a pane to the collection.
 //
 //*********************************************************************
 public void Add(IPanelPane pane)
 {
     // Add the pane to the parent's child controls collection.
     _parent.Controls.Add((Control) pane);
     _items.Add(pane);
 }