Example #1
0
 public void ShowContent(DockContent frm)
 {
     frm.Show(this.dockPanel);
     frm.Focus();
     frm.BringToFront();
 }
Example #2
0
 public void AddPanel(DockContent frm)
 {
     frm.Show(this.MainDockPanel);
     frm.Focus();
 }
Example #3
0
 //-------------------------------------------------------------------------------------------------------------------------------
 public void MakeFormVisible(DockContent doc)
 {
     //make visible..
     if (doc.IsHidden)
         doc.IsHidden = false;
     //remove auto-hide
     if (doc.DockState == WeifenLuo.WinFormsUI.Docking.DockState.DockBottomAutoHide)
         doc.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;
     else if (doc.DockState == WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide)
         doc.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
     else if (doc.DockState == WeifenLuo.WinFormsUI.Docking.DockState.DockTopAutoHide)
         doc.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockTop;
     else if (doc.DockState == WeifenLuo.WinFormsUI.Docking.DockState.DockRightAutoHide)
         doc.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;
     //focus
     doc.Focus();
 }