Exemplo n.º 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;
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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;
        }