예제 #1
0
 public static bool IsAutoHide(this WeifenLuo.WinFormsUI.Docking.DockState state)
 {
     return(state == WeifenLuo.WinFormsUI.Docking.DockState.DockBottomAutoHide ||
            state == WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide ||
            state == WeifenLuo.WinFormsUI.Docking.DockState.DockRightAutoHide ||
            state == WeifenLuo.WinFormsUI.Docking.DockState.DockTopAutoHide);
 }
예제 #2
0
        public void FromChunk(GR.IO.FileChunk Chunk)
        {
            GR.IO.MemoryReader memIn = Chunk.MemoryReader();

            Name        = memIn.ReadString();
            Position.X  = memIn.ReadInt32();
            Position.Y  = memIn.ReadInt32();
            Size.Width  = memIn.ReadInt32();
            Size.Height = memIn.ReadInt32();
            DockState   = (WeifenLuo.WinFormsUI.Docking.DockState)memIn.ReadInt32();
        }
예제 #3
0
            void OnVisibilityChanged(object sender, EventArgs e)
            {
                if (panel.Visible)
                {
                    // change state of checkbox
                    base.Checked = true;
                }
                else
                {
                    // change state of checkbox
                    base.Checked = false;

                    // remember last dock state
                    lastState = panel.DockState;
                }
            }
예제 #4
0
 public void StoreLayout()
 {
     if (Document == null)
     {
         Hidden = true;
         return;
     }
     Hidden    = false;
     DockState = Document.DockState;
     if (!Document.Visible)
     {
         return;
     }
     if (Document.ParentForm == null)
     {
         Position = Document.Location;
     }
     else
     {
         Position = Document.ParentForm.PointToClient(Document.Location);
     }
     Size.Width  = Document.Size.Width;
     Size.Height = Document.Size.Height;
 }
예제 #5
0
 public PadDefaultLocationAttribute(WeifenLuo.WinFormsUI.Docking.DockState dockState)
 {
     this.dockState = dockState;
 }
예제 #6
0
 public PadDefaultLocationAttribute(WeifenLuo.WinFormsUI.Docking.DockState dockState)
 {
     this.dockState = dockState;
 }
예제 #7
0
 public static void ShowWin(WeifenLuo.WinFormsUI.Docking.DockContent dockWin,
                            WeifenLuo.WinFormsUI.Docking.DockState state)
 {
     dockWin.Show(mainFormInstance.masterDockPanel, state);
 }