Beispiel #1
0
        private static void _ChangeVisibilityDocument(TD.SandDock.DockControl frmControl)
        {
            if (frmControl.IsOpen)
            {
                frmControl.Close();
            }
            else
            {
                if (!frmControl.IsAccessible)
                {
                    frmControl.Open( );
                }

                frmControl.Activate();
            }
        }
Beispiel #2
0
        public void AddRight(System.Windows.Forms.Control control, System.Drawing.Image image)
        {
            TD.SandDock.DockControl dockControl = CreateDockControl(control, image);

            TD.SandDock.ControlLayoutSystem controlLayoutSystem;
            if (this.rightDockContainer.LayoutSystem.LayoutSystems.Count == 0)
            {
                controlLayoutSystem = new TD.SandDock.ControlLayoutSystem(250, 582);
                this.rightDockContainer.LayoutSystem.LayoutSystems.Add(controlLayoutSystem);
            }
            else
            {
                controlLayoutSystem = (TD.SandDock.ControlLayoutSystem) this.rightDockContainer.LayoutSystem.LayoutSystems[0];
            }
            controlLayoutSystem.Controls.Add(dockControl);
            dockControl.Activate();
        }