Example #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                goto label_2;
            }
label_1:
            base.Dispose(disposing);
            return;

label_2:
            while (!this.IsDisposed)
            {
                this.LayoutSystem.x7e9646eed248ed11 -= new EventHandler(this.x8e9e04a70e31e166);
                this.xa6607dfd4b3038ad.Activated    -= new EventHandler(((DockContainer)this).xa2414c47d888068e);
                this.xa6607dfd4b3038ad.Deactivate   -= new EventHandler(((DockContainer)this).x19e788b09b195d4f);
                this.xa6607dfd4b3038ad.Closing      -= new CancelEventHandler(this.x9218bee68262250e);
                this.xa6607dfd4b3038ad.DoubleClick  -= new EventHandler(this.xe1f5f125062dc4fb);
                LayoutUtilities.xa7513d57b4844d46((Control)this);
                this.xa6607dfd4b3038ad.Dispose();
                if (true)
                {
                    break;
                }
            }
            goto label_1;
        }
Example #2
0
        private static bool xf96eb78473d85a37(
            DockContainer xd3311d815ca25f02,
            SplitLayoutSystem xb25822984a90695b)
        {
            foreach (LayoutSystemBase layoutSystem in (CollectionBase)xb25822984a90695b.LayoutSystems)
            {
                if (!(layoutSystem is SplitLayoutSystem))
                {
                    goto label_7;
                }
                else
                {
                    goto label_9;
                }
label_4:
                ControlLayoutSystem controlLayoutSystem;
                if (controlLayoutSystem.SelectedControl.Visible && controlLayoutSystem.SelectedControl.Enabled)
                {
                    xd3311d815ca25f02.ActiveControl = (Control)controlLayoutSystem.SelectedControl;
                    return(true);
                }
                continue;
label_7:
                controlLayoutSystem = (ControlLayoutSystem)layoutSystem;
                if (controlLayoutSystem.Collapsed || !xd3311d815ca25f02.Controls.Contains((Control)controlLayoutSystem.SelectedControl))
                {
                    continue;
                }
                goto label_4;
label_9:
                bool flag = LayoutUtilities.xf96eb78473d85a37(xd3311d815ca25f02, (SplitLayoutSystem)layoutSystem);
                if (((flag ? 1 : 0) & 0) == 0)
                {
                    if (flag)
                    {
                        return(true);
                    }
                }
                else
                {
                    goto label_4;
                }
            }
            return(false);
        }
Example #3
0
        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);
            if (this.xd3311d815ca25f02.ActiveControl != null)
            {
                return;
            }
            ControlLayoutSystem controlLayoutSystem = LayoutUtilities.FindControlLayoutSystem((DockContainer)this.xd3311d815ca25f02);

            if (controlLayoutSystem == null)
            {
                return;
            }
            if (false)
            {
                ;
            }
            if (controlLayoutSystem.SelectedControl == null)
            {
                return;
            }
            this.xd3311d815ca25f02.ActiveControl = (Control)controlLayoutSystem.SelectedControl;
        }
Example #4
0
        internal void x810df8ef88cf4bf2(
            SandDockManager x91f347c6e97f1846,
            ContainerDockLocation x9c911703d455884e,
            ContainerDockEdge x3e4dcab61996c9ea)
        {
            DockControl[] x9476096be9672d38 = this.x9476096be9672d38;
            int           num = 0;

            if ((uint)num + (uint)num >= 0U)
            {
                goto label_21;
            }
label_10:
            ControlLayoutSystem newLayoutSystem;
            DockContainer newDockContainer;

            do
            {
                if (!(this is ControlLayoutSystem))
                {
                    if (this.Parent != null)
                    {
                        this.Parent.LayoutSystems.Remove(this);
                    }
                }
                else
                {
                    goto label_11;
                }
label_7:
                newDockContainer = x91f347c6e97f1846.CreateNewDockContainer(x9c911703d455884e, x3e4dcab61996c9ea, num);
                if (newDockContainer is DocumentContainer)
                {
                    newLayoutSystem = newDockContainer.CreateNewLayoutSystem(this.WorkingSize);
                    newDockContainer.LayoutSystem.LayoutSystems.Add((LayoutSystemBase)newLayoutSystem);
                    if (this is SplitLayoutSystem)
                    {
                        ((SplitLayoutSystem)this).MoveToLayoutSystem(newLayoutSystem);
                        continue;
                    }
                    goto label_2;
                }
                else
                {
                    goto label_3;
                }
label_11:
                if (true)
                {
                    LayoutUtilities.x4487f2f8917e3fd0((ControlLayoutSystem)this);
                    if (false)
                    {
                        goto label_7;
                    }
                    else
                    {
                        goto label_7;
                    }
                }
                else
                {
                    goto label_1;
                }
            }while ((uint)num > uint.MaxValue);
            goto label_15;
label_2:
            newLayoutSystem.Controls.AddRange(this.x9476096be9672d38);
            return;

label_3:
            newDockContainer.LayoutSystem.LayoutSystems.Add(this);
            return;

label_1:
            return;

label_15:
            if ((uint)num - (uint)num >= 0U)
            {
                ;
            }
            return;

label_21:
            if ((uint)num < 0U || x9476096be9672d38.Length > 0)
            {
                goto label_22;
            }
label_19:
            Rectangle rectangle;

            do
            {
                rectangle = xedb4922162c60d3d.x41c62f474d3fb367(x91f347c6e97f1846.DockSystemContainer);
                do
                {
                    switch (x9c911703d455884e)
                    {
                    case ContainerDockLocation.Left:
                        goto label_18;

                    case ContainerDockLocation.Right:
                        continue;

                    case ContainerDockLocation.Top:
                        goto label_14;

                    default:
                        goto label_13;
                    }
                }while (false);
label_18:
                num = Math.Min(num, Convert.ToInt32((double)rectangle.Width * 0.9));
            }while ((num & 0) != 0);
            goto label_10;
label_9:
            if (x9c911703d455884e == ContainerDockLocation.Bottom)
            {
                goto label_14;
            }
            else
            {
                goto label_10;
            }
label_13:
            if (true)
            {
                goto label_9;
            }
label_14:
            num = Math.Min(num, Convert.ToInt32((double)rectangle.Height * 0.9));
            if ((uint)num >= 0U)
            {
                goto label_10;
            }
            else
            {
                goto label_9;
            }
label_22:
            num = x9476096be9672d38[0].MetaData.DockedContentSize;
            goto label_19;
        }
Example #5
0
        internal static x5678bb8d80c0f12e x4689c8634e31fc55(
            SandDockManager x91f347c6e97f1846,
            WindowMetaData xfffbdea061bfa120)
        {
            DockContainer[] dockContainers = x91f347c6e97f1846.GetDockContainers(LayoutUtilities.xf8330a3964a419ba(xfffbdea061bfa120.LastFixedDockSide));
            if (dockContainers.Length != 0)
            {
                goto label_12;
            }
            else
            {
                goto label_15;
            }
label_3:
            if (dockContainers.Length != 0)
            {
                return(LayoutUtilities.x2f8f74d308cc9f3f(dockContainers[0], xfffbdea061bfa120.xe62a3d24e0fde928.x61743036ad30763d));
            }
            return(new x5678bb8d80c0f12e(x91f347c6e97f1846.CreateNewDockContainer(xfffbdea061bfa120.LastFixedDockSide, ContainerDockEdge.Inside, xfffbdea061bfa120.DockedContentSize).LayoutSystem, 0));

label_12:
            if (dockContainers.Length < xfffbdea061bfa120.xe62a3d24e0fde928.xd25c313925dc7d4e || xfffbdea061bfa120.xe62a3d24e0fde928.x71a5d248534c8557 >= dockContainers.Length)
            {
                goto label_5;
            }
            else
            {
                goto label_11;
            }
label_1:
            if (xfffbdea061bfa120.xe62a3d24e0fde928.x71a5d248534c8557 == xfffbdea061bfa120.xe62a3d24e0fde928.xd25c313925dc7d4e - 1)
            {
                return(new x5678bb8d80c0f12e(x91f347c6e97f1846.CreateNewDockContainer(xfffbdea061bfa120.LastFixedDockSide, ContainerDockEdge.Inside, xfffbdea061bfa120.DockedContentSize).LayoutSystem, 0));
            }
            goto label_3;
label_5:
            if (xfffbdea061bfa120.xe62a3d24e0fde928.xd25c313925dc7d4e >= 2)
            {
                if (xfffbdea061bfa120.xe62a3d24e0fde928.x71a5d248534c8557 == 0)
                {
                    return(new x5678bb8d80c0f12e(x91f347c6e97f1846.CreateNewDockContainer(xfffbdea061bfa120.LastFixedDockSide, ContainerDockEdge.Outside, xfffbdea061bfa120.DockedContentSize).LayoutSystem, 0));
                }
                goto label_1;
            }
            else
            {
                goto label_3;
            }
label_11:
            if (xfffbdea061bfa120.xe62a3d24e0fde928.x71a5d248534c8557 != -1)
            {
                return(LayoutUtilities.x2f8f74d308cc9f3f(dockContainers[xfffbdea061bfa120.xe62a3d24e0fde928.x71a5d248534c8557], xfffbdea061bfa120.xe62a3d24e0fde928.x61743036ad30763d));
            }
            if (false)
            {
                goto label_1;
            }
            else
            {
                goto label_5;
            }
label_15:
            while (true)
            {
                if (true)
                {
                    return(new x5678bb8d80c0f12e(x91f347c6e97f1846.CreateNewDockContainer(xfffbdea061bfa120.LastFixedDockSide, ContainerDockEdge.Inside, xfffbdea061bfa120.DockedContentSize).LayoutSystem, 0));
                }
            }
            goto label_3;
        }
Example #6
0
        internal static ControlLayoutSystem xba5fd484c0e6478b(
            SandDockManager x91f347c6e97f1846,
            DockSituation xd39eba9a9a1b028e,
            x129cb2a2bdfd0ab2 xfffbdea061bfa120)
        {
            int index1;

            DockContainer[] dockContainers1;
            int             index2;

            ControlLayoutSystem[] controlLayoutSystemArray1;
            int index3;

            DockContainer[] dockContainers2;
            switch (xd39eba9a9a1b028e)
            {
            case DockSituation.Docked:
                dockContainers2 = x91f347c6e97f1846.GetDockContainers();
                index3          = 0;
                goto label_26;

            case DockSituation.Document:
                if (x91f347c6e97f1846.DocumentContainer != null)
                {
                    controlLayoutSystemArray1 = LayoutUtilities.x1494f515233a1246((DockContainer)x91f347c6e97f1846.DocumentContainer);
                    if (true)
                    {
                        index2 = 0;
                        goto label_21;
                    }
                    else
                    {
                        goto label_29;
                    }
                }
                else
                {
                    break;
                }

            case DockSituation.Floating:
                dockContainers1 = x91f347c6e97f1846.GetDockContainers();
                int num1;
                if ((uint)num1 + (uint)num1 >= 0U)
                {
                    index1 = 0;
                    goto label_4;
                }
                else
                {
                    goto label_21;
                }

            default:
                throw new InvalidOperationException();
            }
label_2:
            return((ControlLayoutSystem)null);

label_3:
            ++index1;
label_4:
            DockContainer xd3311d815ca25f02_1;

            if (index1 < dockContainers1.Length)
            {
                xd3311d815ca25f02_1 = dockContainers1[index1];
            }
            else
            {
                goto label_2;
            }
label_6:
            int index4;

            ControlLayoutSystem[] controlLayoutSystemArray2;
            if (LayoutUtilities.x8d287cc6f0a2f529(xd3311d815ca25f02_1) != xd39eba9a9a1b028e)
            {
                if (true)
                {
                    goto label_3;
                }
                else
                {
                    goto label_44;
                }
            }
            else
            {
                controlLayoutSystemArray2 = LayoutUtilities.x1494f515233a1246(xd3311d815ca25f02_1);
                if ((uint)index4 + (uint)index2 >= 0U)
                {
                    index4 = 0;
                }
                else
                {
                    goto label_44;
                }
            }
label_8:
            if (index4 >= controlLayoutSystemArray2.Length)
            {
                if (true)
                {
                    if ((uint)index1 - (uint)index2 <= uint.MaxValue)
                    {
                        goto label_3;
                    }
                    else
                    {
                        goto label_6;
                    }
                }
                else
                {
                    goto label_40;
                }
            }
label_14:
            ControlLayoutSystem controlLayoutSystem1 = controlLayoutSystemArray2[index4];
            ControlLayoutSystem controlLayoutSystem2;

            if (!(controlLayoutSystem1.x0217cda8370c1f17 == xfffbdea061bfa120.x703937d70a13725c))
            {
                ++index4;
                goto label_8;
            }
            else
            {
                controlLayoutSystem2 = controlLayoutSystem1;
                goto label_44;
            }
label_19:
            for (; index2 < controlLayoutSystemArray1.Length; ++index2)
            {
                ControlLayoutSystem controlLayoutSystem3 = controlLayoutSystemArray1[index2];
                if (controlLayoutSystem3.x0217cda8370c1f17 == xfffbdea061bfa120.x703937d70a13725c)
                {
                    controlLayoutSystem2 = controlLayoutSystem3;
                    goto label_44;
                }
            }
            goto label_2;
label_21:
            int num2;
            int num3;

            if ((uint)num2 - (uint)num3 < 0U)
            {
                goto label_29;
            }
            else
            {
                goto label_19;
            }
label_26:
            DockContainer xd3311d815ca25f02_2;

            if (index3 < dockContainers2.Length)
            {
                xd3311d815ca25f02_2 = dockContainers2[index3];
                goto label_30;
            }
            else
            {
                goto label_2;
            }
label_28:
            if (false)
            {
                goto label_30;
            }
label_29:
            ++index3;
            if (false)
            {
                if (false)
                {
                    goto label_19;
                }
                else
                {
                    goto label_28;
                }
            }
            else
            {
                goto label_26;
            }
label_30:
            if (LayoutUtilities.x8d287cc6f0a2f529(xd3311d815ca25f02_2) != xd39eba9a9a1b028e && (uint)index1 + (uint)index3 <= uint.MaxValue)
            {
                goto label_29;
            }
label_40:
            int index5;

            do
            {
                ControlLayoutSystem[] controlLayoutSystemArray3 = LayoutUtilities.x1494f515233a1246(xd3311d815ca25f02_2);
                do
                {
                    for (index5 = 0; index5 < controlLayoutSystemArray3.Length; ++index5)
                    {
                        ControlLayoutSystem controlLayoutSystem3 = controlLayoutSystemArray3[index5];
                        if (controlLayoutSystem3.x0217cda8370c1f17 == xfffbdea061bfa120.x703937d70a13725c)
                        {
                            controlLayoutSystem2 = controlLayoutSystem3;
                            goto label_44;
                        }
                    }
                    if ((uint)index3 - (uint)index2 <= uint.MaxValue)
                    {
                        goto label_28;
                    }
                }while ((uint)index3 < 0U);
            }while ((uint)index5 + (uint)index1 < 0U);
            if ((index4 & 0) == 0)
            {
                if ((index3 | 1) != 0)
                {
                    goto label_30;
                }
                else
                {
                    goto label_29;
                }
            }
            else
            {
                goto label_14;
            }
label_44:
            return(controlLayoutSystem2);
        }
Example #7
0
        private static int xd47535e893e9796b(
            SplitLayoutSystem x6e150040c8d97700,
            Orientation xf65758d54b79fc7a)
        {
            int val1 = 0;

            foreach (LayoutSystemBase layoutSystem in (CollectionBase)x6e150040c8d97700.LayoutSystems)
            {
                int num;
                if ((uint)num - (uint)num >= 0U)
                {
                    goto label_11;
                }
label_8:
                SplitLayoutSystem x6e150040c8d97700_1;
                if (x6e150040c8d97700_1 != null)
                {
                    val1 = Math.Max(val1, LayoutUtilities.xd47535e893e9796b(x6e150040c8d97700_1, xf65758d54b79fc7a));
                    continue;
                }
                continue;
label_11:
                x6e150040c8d97700_1 = layoutSystem as SplitLayoutSystem;
                goto label_8;
            }
            int num1 = val1;

            while (x6e150040c8d97700.LayoutSystems.Count > 1)
            {
                if ((uint)val1 + (uint)val1 <= uint.MaxValue)
                {
                    if ((uint)val1 - (uint)num1 <= uint.MaxValue)
                    {
                        goto label_5;
                    }
                }
                else
                {
                    goto label_17;
                }
label_4:
                if (false)
                {
                    continue;
                }
label_5:
                if (x6e150040c8d97700.SplitMode != xf65758d54b79fc7a)
                {
                    break;
                }
label_6:
                num1 += x6e150040c8d97700.LayoutSystems.Count - 1;
                if ((num1 | 15) == 0)
                {
                    goto label_4;
                }
                else
                {
                    break;
                }
label_17:
                if ((uint)num1 >= 0U)
                {
                    goto label_5;
                }
                else
                {
                    goto label_6;
                }
            }
            return(num1);
        }
Example #8
0
 internal static int xc6fb69ef430eaa44(DockContainer x0467b00af7810f0c)
 {
     return((x0467b00af7810f0c.AllowResize ? 4 : 0) + LayoutUtilities.xd47535e893e9796b(x0467b00af7810f0c.LayoutSystem, x0467b00af7810f0c.x61c108cc44ef385a ? Orientation.Vertical : Orientation.Horizontal) * 5);
 }
Example #9
0
        internal static void xf1cbd48a28ce6e74(DockControl x43bec302f92080b9)
        {
            if (x43bec302f92080b9 == null)
            {
                throw new ArgumentNullException();
            }
            ControlLayoutSystem layoutSystem = x43bec302f92080b9.LayoutSystem;
            bool flag;

            if (((flag ? 1 : 0) & 0) != 0 || layoutSystem == null)
            {
                return;
            }
            DockContainer dockContainer = layoutSystem.DockContainer;
            bool          containsFocus = x43bec302f92080b9.ContainsFocus;

            if (false)
            {
                goto label_4;
            }
            else
            {
                goto label_15;
            }
label_1:
            if (!containsFocus)
            {
                return;
            }
            if (x43bec302f92080b9.Manager == null)
            {
                if (((containsFocus ? 1 : 0) | 4) != 0)
                {
                    return;
                }
            }
            else
            {
                goto label_9;
            }
label_7:
            DockControl recentlyUsedWindow = x43bec302f92080b9.Manager.FindMostRecentlyUsedWindow(~DockSituation.None, x43bec302f92080b9);

            goto label_8;
label_9:
            recentlyUsedWindow = x43bec302f92080b9.Manager.FindMostRecentlyUsedWindow(DockSituation.Document, x43bec302f92080b9);
            if (recentlyUsedWindow != null)
            {
                goto label_8;
            }
            else
            {
                goto label_7;
            }
label_3:
            recentlyUsedWindow.x6d1b64d6c637a91d(true);
            return;

label_4:
            if (true)
            {
                if (false)
                {
                    goto label_3;
                }
                else
                {
                    goto label_1;
                }
            }
label_8:
            if (recentlyUsedWindow == null)
            {
                return;
            }
            goto label_3;
label_15:
            if (containsFocus)
            {
                goto label_16;
            }
label_12:
            layoutSystem.Controls.Remove(x43bec302f92080b9);
            while (layoutSystem.Controls.Count == 0)
            {
                LayoutUtilities.x4487f2f8917e3fd0(layoutSystem);
                if (true)
                {
                    break;
                }
            }
            goto label_1;
label_16:
            Form form = x43bec302f92080b9.FindForm();

            if ((uint)containsFocus + (uint)containsFocus < 0U || form != null)
            {
                form.ActiveControl = (Control)null;
                goto label_12;
            }
            else
            {
                goto label_12;
            }
        }
Example #10
0
        internal static void xa7513d57b4844d46(Control x43bec302f92080b9)
        {
            if (x43bec302f92080b9.Parent != null)
            {
                goto label_26;
            }
            else
            {
                goto label_29;
            }
label_1:
            ((DockControl)x43bec302f92080b9).xadad18dc04073a00 = true;
            goto label_3;
label_2:
            if (x43bec302f92080b9 is DockControl)
            {
                goto label_1;
            }
label_3:
            try
            {
                IContainerControl containerControl = x43bec302f92080b9.Parent.GetContainerControl();
                if (true)
                {
                    goto label_16;
                }
                else
                {
                    goto label_10;
                }
label_4:
                if (true)
                {
                    goto label_6;
                }
label_5:
                if (containerControl != null)
                {
                    goto label_18;
                }
label_6:
                x43bec302f92080b9.Parent.Controls.Remove(x43bec302f92080b9);
                return;

label_7:
                if (containerControl.ActiveControl == x43bec302f92080b9)
                {
                    if (true)
                    {
                        containerControl.ActiveControl = (Control)null;
                        goto label_4;
                    }
                    else
                    {
                        goto label_4;
                    }
                }
                else
                {
                    goto label_6;
                }
label_10:
                DockContainer xd3311d815ca25f02;
                if (xd3311d815ca25f02.Manager.OwnerForm != null)
                {
                    while (xd3311d815ca25f02.Manager.OwnerForm.IsMdiContainer)
                    {
                        LayoutUtilities.xf96eb78473d85a37(xd3311d815ca25f02, xd3311d815ca25f02.LayoutSystem);
                        if (true)
                        {
                            goto label_6;
                        }
                    }
                    goto label_7;
                }
                else
                {
                    goto label_7;
                }
label_14:
                if (xd3311d815ca25f02 != null && xd3311d815ca25f02.Manager != null)
                {
                    if (false)
                    {
                        return;
                    }
                    goto label_10;
                }
                else
                {
                    goto label_7;
                }
label_16:
                if (false)
                {
                    if (false)
                    {
                        if (true)
                        {
                            if (true)
                            {
                                goto label_7;
                            }
                            else
                            {
                                goto label_4;
                            }
                        }
                        else
                        {
                            goto label_14;
                        }
                    }
                }
                else
                {
                    goto label_5;
                }
label_18:
                xd3311d815ca25f02 = containerControl as DockContainer;
                goto label_14;
            }
            finally
            {
                if (x43bec302f92080b9 is DockControl)
                {
                    ((DockControl)x43bec302f92080b9).xadad18dc04073a00 = false;
                }
            }
label_26:
            if (x43bec302f92080b9.ContainsFocus)
            {
                x43bec302f92080b9.Parent.Focus();
                goto label_2;
            }
label_27:
            if (false)
            {
                if (false)
                {
                    return;
                }
                goto label_1;
            }
            else
            {
                goto label_2;
            }
label_29:
            if (false)
            {
                goto label_27;
            }
        }
Example #11
0
        internal void xe6ff614263a59ef9(
            DockControl x43bec302f92080b9,
            bool x0b9c38731edfc369,
            bool x17cc8f73454a0462)
        {
            if (this.xdf67155884991aa8 == x43bec302f92080b9.LayoutSystem)
            {
                goto label_54;
            }
label_1:
            int num;

            if (x0b9c38731edfc369)
            {
                num = 1;
            }
            else
            {
                goto label_46;
            }
label_3:
            x0b9c38731edfc369 = num != 0;
            x43bec302f92080b9.LayoutSystem.SelectedControl = x43bec302f92080b9;
            if (x43bec302f92080b9.LayoutSystem.SelectedControl != x43bec302f92080b9)
            {
                return;
            }
            try
            {
                if (this.xdf67155884991aa8 == x43bec302f92080b9.LayoutSystem)
                {
                    if ((uint)x17cc8f73454a0462 + (uint)x17cc8f73454a0462 > uint.MaxValue)
                    {
                        if (((x0b9c38731edfc369 ? 1 : 0) & 0) != 0 && (uint)x0b9c38731edfc369 + (uint)x0b9c38731edfc369 >= 0U)
                        {
                            goto label_11;
                        }
                    }
                    else
                    {
                        goto label_35;
                    }
                }
                else
                {
                    goto label_20;
                }
label_8:
                TD.SandDock.x87cf4de36131799d xd70b090e3181abff;
                if (xd70b090e3181abff.IsDisposed)
                {
                    return;
                }
                if (xd70b090e3181abff.Parent == null)
                {
                    goto label_11;
                }
label_10:
                this.x5fea292ffeb2c28c         = xd70b090e3181abff;
                this.xdf67155884991aa8         = x43bec302f92080b9.LayoutSystem;
                this.x2076b5c9f1eb82ef.Enabled = true;
                x43bec302f92080b9.OnAutoHidePopupOpened(EventArgs.Empty);
                if ((uint)x17cc8f73454a0462 + (uint)x17cc8f73454a0462 >= 0U)
                {
                    return;
                }
                goto label_35;
label_11:
                if ((uint)x17cc8f73454a0462 - (uint)x0b9c38731edfc369 <= uint.MaxValue)
                {
                    return;
                }
label_12:
                if (((x17cc8f73454a0462 ? 1 : 0) | 8) == 0)
                {
                    return;
                }
                goto label_8;
label_20:
                Rectangle xd2acd28268ef2513;
                do
                {
                    this.xcdb145600c1b7224(true);
                    if (true)
                    {
                        this.x792c0fd4639cad90 = this.x8012502b8eced8ff(x43bec302f92080b9.LayoutSystem.xca843b3e9a1c605f, out xd2acd28268ef2513);
                        xd70b090e3181abff      = new TD.SandDock.x87cf4de36131799d(this);
                        IEnumerator enumerator = x43bec302f92080b9.LayoutSystem.Controls.GetEnumerator();
                        try
                        {
                            while (enumerator.MoveNext())
                            {
                                DockControl current = (DockControl)enumerator.Current;
                                while (current.Parent != null)
                                {
                                    LayoutUtilities.xa7513d57b4844d46((Control)current);
                                    if ((uint)x17cc8f73454a0462 - (uint)x0b9c38731edfc369 >= 0U)
                                    {
                                        goto label_24;
                                    }
                                }
                                if (((x17cc8f73454a0462 ? 1 : 0) & 0) != 0)
                                {
                                    continue;
                                }
label_24:
                                current.Parent = (Control)xd70b090e3181abff;
                            }
                        }
                        finally
                        {
                            IDisposable disposable = enumerator as IDisposable;
                            while (disposable != null)
                            {
                                disposable.Dispose();
                                if (true)
                                {
                                    break;
                                }
                            }
                        }
                        xd70b090e3181abff.x5a9cbf8ad0ee9896 = x43bec302f92080b9.LayoutSystem;
                        xd70b090e3181abff.Visible           = false;
                    }
                    else
                    {
                        goto label_12;
                    }
                }while ((uint)x17cc8f73454a0462 > uint.MaxValue);
                if (true)
                {
                    this.Parent.Controls.Add((Control)xd70b090e3181abff);
                    xd70b090e3181abff.Bounds = this.x792c0fd4639cad90;
                    if (true)
                    {
                        if (true)
                        {
                            goto label_18;
                        }
label_15:
                        while (x0b9c38731edfc369)
                        {
                            if ((uint)x0b9c38731edfc369 >= 0U)
                            {
                                if ((uint)x17cc8f73454a0462 - (uint)x17cc8f73454a0462 >= 0U)
                                {
                                    goto label_14;
                                }
                            }
                            else
                            {
                                goto label_10;
                            }
                        }
                        goto label_17;
label_14:
                        xd70b090e3181abff.Bounds = this.x792c0fd4639cad90;
                        xd70b090e3181abff.ResumeLayout();
                        goto label_8;
label_17:
                        this.x53cde82d34a241f8(xd70b090e3181abff, xd2acd28268ef2513, this.x792c0fd4639cad90);
                        goto label_14;
label_18:
                        xd70b090e3181abff.SuspendLayout();
                        xd70b090e3181abff.Bounds  = xd2acd28268ef2513;
                        xd70b090e3181abff.Visible = true;
                        xd70b090e3181abff.BringToFront();
                        goto label_15;
                    }
                }
label_35:
                if (false)
                {
                    ;
                }
                return;
            }
            finally
            {
                if (x17cc8f73454a0462 && (((x0b9c38731edfc369 ? 1 : 0) | 1) == 0 || this.x23498f53d87354d4 == x43bec302f92080b9.LayoutSystem))
                {
                    x43bec302f92080b9.Activate();
                }
            }
label_46:
            num = !this.x6991238ec3e25129() ? 1 : 0;
            goto label_3;
label_54:
            if ((uint)x0b9c38731edfc369 - (uint)x17cc8f73454a0462 >= 0U)
            {
                if (x43bec302f92080b9.LayoutSystem.SelectedControl != x43bec302f92080b9)
                {
                    if (((x17cc8f73454a0462 ? 1 : 0) | int.MaxValue) != 0)
                    {
                        goto label_1;
                    }
                    else
                    {
                        goto label_46;
                    }
                }
            }
            else
            {
                goto label_52;
            }
label_50:
            if (!x17cc8f73454a0462)
            {
                if ((uint)x17cc8f73454a0462 < 0U)
                {
                    ;
                }
                return;
            }
            goto label_53;
label_52:
            if ((uint)x0b9c38731edfc369 + (uint)x0b9c38731edfc369 <= uint.MaxValue)
            {
                goto label_50;
            }
label_53:
            x43bec302f92080b9.Activate();
        }
Example #12
0
        internal void xcdb145600c1b7224(bool x0b9c38731edfc369)
        {
            if (this.xdf67155884991aa8 == null)
            {
                return;
            }
            TD.SandDock.x87cf4de36131799d x5fea292ffeb2c28c = this.x5fea292ffeb2c28c;
label_19:
            if (true)
            {
                goto label_20;
            }
label_7:
            Control[] controlArray1;
            x5fea292ffeb2c28c.Controls.CopyTo((Array)controlArray1, 0);
            Control[] controlArray2 = controlArray1;
            int       index;

            if ((uint)x0b9c38731edfc369 + (uint)index >= 0U)
            {
                goto label_4;
            }
label_2:
            ControlLayoutSystem xdf67155884991aa8;

            if (xdf67155884991aa8 == null || (uint)x0b9c38731edfc369 <= uint.MaxValue && xdf67155884991aa8.SelectedControl == null)
            {
                return;
            }
            xdf67155884991aa8.SelectedControl.OnAutoHidePopupClosed(EventArgs.Empty);
            if ((uint)index - (uint)x0b9c38731edfc369 <= uint.MaxValue)
            {
                return;
            }
            goto label_11;
label_4:
            for (index = 0; index < controlArray2.Length; ++index)
            {
                LayoutUtilities.xa7513d57b4844d46(controlArray2[index]);
            }
            x5fea292ffeb2c28c.Dispose();
            goto label_2;
label_10:
            xdf67155884991aa8      = this.xdf67155884991aa8;
            this.xdf67155884991aa8 = (ControlLayoutSystem)null;
            controlArray1          = new Control[x5fea292ffeb2c28c.Controls.Count];
            goto label_7;
label_11:
            x5fea292ffeb2c28c.ResumeLayout();
            if (((x0b9c38731edfc369 ? 1 : 0) & 0) == 0)
            {
                while ((uint)x0b9c38731edfc369 <= uint.MaxValue)
                {
                    if ((uint)index <= uint.MaxValue)
                    {
                        goto label_10;
                    }
                }
            }
            else
            {
                goto label_19;
            }
label_12:
            if (!x0b9c38731edfc369)
            {
                Rectangle xd2acd28268ef2513;
                this.x8012502b8eced8ff(this.xdf67155884991aa8.xca843b3e9a1c605f, out xd2acd28268ef2513);
                x5fea292ffeb2c28c.SuspendLayout();
                this.x53cde82d34a241f8(x5fea292ffeb2c28c, x5fea292ffeb2c28c.Bounds, xd2acd28268ef2513);
                goto label_11;
            }
            else
            {
                goto label_10;
            }
label_20:
            int num;

            if (x0b9c38731edfc369)
            {
                num = 1;
            }
            else
            {
                goto label_21;
            }
label_16:
            x0b9c38731edfc369 = num != 0;
            this.x2076b5c9f1eb82ef.Enabled = false;
            goto label_12;
label_21:
            if (false)
            {
                ;
            }
            num = !this.x6991238ec3e25129() ? 1 : 0;
            goto label_16;
        }
Example #13
0
        public x09c1c18390e52ebf(SandDockManager manager, DockContainer container, System.Drawing.Point startPoint)
            : base((Control)container, manager.DockingHints, false)
        {
            if (true)
            {
                goto label_20;
            }
            else
            {
                goto label_17;
            }
label_1:
            this.OnMouseMove(startPoint);
            return;

label_8:
            Rectangle rectangle;
            int num1;
            int x555227b0d2a372bd;

            this.xffa8345bf918658d = Math.Max(rectangle.Left + 20, startPoint.X - (num1 - x555227b0d2a372bd));
            if (false)
            {
                ;
            }
            int num2;

            this.xb646339c3b9e735a = startPoint.X + (x555227b0d2a372bd - num2);
            this.xf623ffb827affd4f = startPoint.X - container.x0c42f19be578ccee.X;
            goto label_1;
label_16:
            int val1;

            num2 = Math.Max(val1, LayoutUtilities.xc6fb69ef430eaa44(container));
            if (manager != null)
            {
                goto label_13;
            }
label_12:
            int num3 = 500;

            goto label_14;
label_13:
            num3 = manager.MaximumDockContainerSize;
label_14:
            num1 = num3;
            x555227b0d2a372bd = container.x555227b0d2a372bd;
            if ((uint)num1 <= uint.MaxValue)
            {
                if ((uint)num2 + (uint)num2 >= 0U)
                {
                    switch (container.Dock)
                    {
                    case DockStyle.Top:
                        this.xffa8345bf918658d = startPoint.Y - (x555227b0d2a372bd - num2);
                        if ((uint)x555227b0d2a372bd + (uint)x555227b0d2a372bd <= uint.MaxValue)
                        {
                            break;
                        }
                        goto label_1;

                    case DockStyle.Bottom:
                        this.xffa8345bf918658d = Math.Max(rectangle.Top + 20, startPoint.Y - (num1 - x555227b0d2a372bd));
                        this.xb646339c3b9e735a = startPoint.Y + (x555227b0d2a372bd - num2);
                        if (true)
                        {
                            if ((num2 | 2) != 0)
                            {
                                this.xf623ffb827affd4f = startPoint.Y - container.x0c42f19be578ccee.Y;
                                if ((uint)num2 - (uint)num2 < 0U)
                                {
                                    return;
                                }
                                goto label_1;
                            }
                            else
                            {
                                break;
                            }
                        }
                        else
                        {
                            goto label_1;
                        }

                    case DockStyle.Left:
                        this.xffa8345bf918658d = startPoint.X - (x555227b0d2a372bd - num2);
                        this.xb646339c3b9e735a = Math.Min(rectangle.Right - 20, startPoint.X + (num1 - x555227b0d2a372bd));
                        this.xf623ffb827affd4f = startPoint.X - container.x0c42f19be578ccee.X;
                        goto label_1;

                    case DockStyle.Right:
                        goto label_8;

                    default:
                        goto label_1;
                    }
                    this.xb646339c3b9e735a = Math.Min(rectangle.Bottom - 20, startPoint.Y + (num1 - x555227b0d2a372bd));
                    this.xf623ffb827affd4f = startPoint.Y - container.x0c42f19be578ccee.Y;
                    goto label_1;
                }
                else
                {
                    goto label_12;
                }
            }
            else
            {
                goto label_1;
            }
label_17:
            int num4;

            if ((num4 | -1) == 0)
            {
                goto label_8;
            }
label_18:
            val1 = 30;
            goto label_16;
label_20:
            this.xd3311d815ca25f02 = container;
            Rectangle empty = Rectangle.Empty;

            rectangle = xedb4922162c60d3d.xc68a4bb946c59a9e(xedb4922162c60d3d.x41c62f474d3fb367(container.Parent), container.Parent);
            rectangle = new Rectangle(container.PointToClient(rectangle.Location), rectangle.Size);
            if (manager != null)
            {
                val1 = manager.MinimumDockContainerSize;
                goto label_16;
            }
            else
            {
                goto label_18;
            }
        }