Beispiel #1
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);
        }
Beispiel #2
0
 internal static int xc6fb69ef430eaa44(DockContainer x0467b00af7810f0c)
 {
     return((x0467b00af7810f0c.AllowResize ? 4 : 0) + LayoutUtilities.xd47535e893e9796b(x0467b00af7810f0c.LayoutSystem, x0467b00af7810f0c.x61c108cc44ef385a ? Orientation.Vertical : Orientation.Horizontal) * 5);
 }