コード例 #1
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;
        }
コード例 #2
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);
        }