Ejemplo n.º 1
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();
        }