Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                goto label_6;
            }
label_3:
            base.Dispose(disposing);
            return;

label_6:
            this.xcdb145600c1b7224(true);
            this.x537a4001020fd4c7.Tick -= new EventHandler(this.x79a58a5d2c65c5a4);
            this.x537a4001020fd4c7.Dispose();
            this.x537a4001020fd4c7 = (Timer)null;
            do
            {
                this.x2076b5c9f1eb82ef.Tick -= new EventHandler(this.xeccc53b32ba6b859);
                this.x2076b5c9f1eb82ef.Dispose();
                this.x2076b5c9f1eb82ef = (Timer)null;
                if (this.x5fea292ffeb2c28c != null)
                {
                    goto label_4;
                }
            }while (false);
label_2:
            this.x7fdaeb05cb5e84f3.Clear();
            goto label_3;
label_4:
            this.x5fea292ffeb2c28c.Dispose();
            this.x5fea292ffeb2c28c = (TD.SandDock.x87cf4de36131799d)null;
            goto label_2;
        }
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;
        }
Exemplo n.º 4
0
        private void x53cde82d34a241f8(
            TD.SandDock.x87cf4de36131799d xd70b090e3181abff,
            Rectangle x0ac6c3cc02709091,
            Rectangle x0cd0c84a144ffcbc)
        {
            this.x297f71a96c16086c = true;
            try
            {
                float num1 = (float)(x0cd0c84a144ffcbc.X - x0ac6c3cc02709091.X);
                float num2 = (float)(x0cd0c84a144ffcbc.Y - x0ac6c3cc02709091.Y);
label_8:
                float num3 = (float)(x0cd0c84a144ffcbc.Width - x0ac6c3cc02709091.Width);
                float num4      = (float)(x0cd0c84a144ffcbc.Height - x0ac6c3cc02709091.Height);
                int   tickCount = Environment.TickCount;
                while (Environment.TickCount < tickCount + 100)
                {
label_7:
                    float num5 = (float)(Environment.TickCount - tickCount) / 100f;
                    float num6 = (float)x0ac6c3cc02709091.X + num1 * num5;
                    float num7 = (float)x0ac6c3cc02709091.Y + num2 * num5;
                    float num8 = (float)x0ac6c3cc02709091.Width + num3 * num5;
                    float num9 = (float)x0ac6c3cc02709091.Height + num4 * num5;
                    if ((uint)num4 - (uint)num2 <= uint.MaxValue)
                    {
                        if (((int)(uint)num1 & 0) == 0)
                        {
                            do
                            {
                                Rectangle rectangle = new Rectangle((int)num6, (int)num7, (int)num8, (int)num9);
                                xd70b090e3181abff.SetBounds(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, BoundsSpecified.All);
                                Application.DoEvents();
                                if ((uint)num2 - (uint)num4 >= 0U && xd70b090e3181abff != null)
                                {
                                    if ((uint)num7 + (uint)num1 < 0U)
                                    {
                                        goto label_7;
                                    }
                                }
                                else
                                {
                                    goto label_12;
                                }
                            }while ((tickCount | 1) == 0);
                            goto label_11;
label_12:
                            break;
                        }
label_11:
                        if ((uint)num1 - (uint)num1 < 0U)
                        {
                            break;
                        }
                    }
                    else
                    {
                        goto label_8;
                    }
                }
            }
            finally
            {
                this.x297f71a96c16086c = false;
            }
        }