Example #1
0
 private void x367ada130c39f434()
 {
     this.x372569d2ea29984e.x868a32060451dd2e -= new EventHandler(this.xfae511fd7c4fb447);
     this.x372569d2ea29984e.x67ecc0d0e7c9a202 -= new x8e80e1c8bce8caf7.SplittingManagerFinishedEventHandler(this.xc555e814c1720baf);
     this.x372569d2ea29984e = (x8e80e1c8bce8caf7)null;
 }
Example #2
0
        protected override void OnMouseDragBegin(int x, int y)
        {
            ISelectionService service1 = (ISelectionService)this.GetService(typeof(ISelectionService));

            if ((uint)y - (uint)x > uint.MaxValue)
            {
                goto label_24;
            }
            else
            {
                goto label_37;
            }
label_18:
            DockControl controlAt;

            while (controlAt == null)
            {
                if ((uint)x <= uint.MaxValue)
                {
                    goto label_14;
                }
            }
            goto label_17;
label_11:
            if (false)
            {
                goto label_14;
            }
label_13:
            ControlLayoutSystem controlLayoutSystem;

            System.Drawing.Point client;
            if (!controlLayoutSystem.xb48529af1739dd06.Contains(client))
            {
                goto label_12;
            }
            else
            {
                goto label_15;
            }
label_7:
            if (controlLayoutSystem.SelectedControl != null)
            {
                service1.SetSelectedComponents((ICollection) new object[1]
                {
                    (object)controlLayoutSystem.SelectedControl
                }, SelectionTypes.Click);
                if ((uint)y > uint.MaxValue)
                {
                    goto label_31;
                }
            }
            this.x6afebf16b45c02e0 = new System.Drawing.Point(x, y);
            if ((uint)y + (uint)y > uint.MaxValue)
            {
                if (true)
                {
                    goto label_14;
                }
                else
                {
                    goto label_11;
                }
            }
            else
            {
                goto label_16;
            }
label_12:
            if (controlAt == null)
            {
                service1.SetSelectedComponents((ICollection) new object[1]
                {
                    (object)this.x0467b00af7810f0c
                }, SelectionTypes.MouseDown | SelectionTypes.Click);
                this.x0467b00af7810f0c.Capture = true;
                return;
            }
            goto label_7;
label_15:
            if ((uint)x + (uint)y >= 0U)
            {
                goto label_7;
            }
label_16:
            if ((x & 0) == 0)
            {
                if (false)
                {
                    return;
                }
                if ((x | 1) != 0)
                {
                    if (true)
                    {
                        ;
                    }
                    return;
                }
                goto label_7;
            }
            else
            {
                goto label_18;
            }
label_14:
            if (true)
            {
                goto label_13;
            }
label_17:
            if (controlAt.LayoutSystem.SelectedControl != controlAt)
            {
                IComponentChangeService service2 = (IComponentChangeService)this.GetService(typeof(IComponentChangeService));
                if (true)
                {
                    service2.OnComponentChanging((object)this.x0467b00af7810f0c, (MemberDescriptor)TypeDescriptor.GetProperties((object)this.x0467b00af7810f0c)["LayoutSystem"]);
                    controlAt.LayoutSystem.SelectedControl = controlAt;
                    service2.OnComponentChanged((object)this.x0467b00af7810f0c, (MemberDescriptor)TypeDescriptor.GetProperties((object)this.x0467b00af7810f0c)["LayoutSystem"], (object)null, (object)null);
                    if (true)
                    {
                        goto label_13;
                    }
                    else
                    {
                        goto label_18;
                    }
                }
                else
                {
                    goto label_14;
                }
            }
            else
            {
                goto label_11;
            }
label_24:
            controlAt = controlLayoutSystem.GetControlAt(client);
            goto label_18;
label_25:
            this.x754f1c6f433be75d.x67ecc0d0e7c9a202 += new x09c1c18390e52ebf.ResizingManagerFinishedEventHandler(this.xa7afb2334769edc5);
label_26:
            this.x0467b00af7810f0c.Capture = true;
            if ((uint)y + (uint)x <= uint.MaxValue)
            {
                return;
            }
            goto label_25;
label_31:
            if ((uint)y - (uint)y <= uint.MaxValue)
            {
                this.x0467b00af7810f0c.Capture = true;
                return;
            }
            goto label_26;
label_37:
            if ((uint)y - (uint)y >= 0U)
            {
                client = this.x0467b00af7810f0c.PointToClient(new System.Drawing.Point(x, y));
                LayoutSystemBase layoutSystemAt = this.x0467b00af7810f0c.GetLayoutSystemAt(client);
                if (!(layoutSystemAt is SplitLayoutSystem))
                {
                    goto label_22;
                }
                else
                {
                    goto label_34;
                }
label_2:
                service1.SetSelectedComponents((ICollection) new object[1]
                {
                    (object)this.x0467b00af7810f0c
                }, SelectionTypes.MouseDown | SelectionTypes.Click);
                return;

label_22:
                if (!(this.x0467b00af7810f0c.x0c42f19be578ccee != Rectangle.Empty) || !this.x0467b00af7810f0c.x0c42f19be578ccee.Contains(client))
                {
                    if (layoutSystemAt is ControlLayoutSystem)
                    {
                        controlLayoutSystem = (ControlLayoutSystem)layoutSystemAt;
                        goto label_24;
                    }
                    else
                    {
                        goto label_2;
                    }
                }
                else
                {
                    if ((uint)x > uint.MaxValue)
                    {
                        return;
                    }
                    this.x754f1c6f433be75d = new x09c1c18390e52ebf(this.x0467b00af7810f0c.Manager, this.x0467b00af7810f0c, client);
                    this.x754f1c6f433be75d.x868a32060451dd2e += new EventHandler(this.x30c28c62b1a6040e);
                    goto label_25;
                }
label_34:
                SplitLayoutSystem splitLayout = (SplitLayoutSystem)layoutSystemAt;
                if (splitLayout.x090b65ef9b096e0b(client.X, client.Y))
                {
                    LayoutSystemBase xc13a8191724b6d55;
                    LayoutSystemBase x5aa50bbadb0a1e6c;
                    splitLayout.x5a3264f7eba0fe4f(client, out xc13a8191724b6d55, out x5aa50bbadb0a1e6c);
                    this.x372569d2ea29984e = new x8e80e1c8bce8caf7(this.x0467b00af7810f0c, splitLayout, xc13a8191724b6d55, x5aa50bbadb0a1e6c, client, DockingHints.TranslucentFill);
                    this.x372569d2ea29984e.x868a32060451dd2e += new EventHandler(this.xfae511fd7c4fb447);
                    this.x372569d2ea29984e.x67ecc0d0e7c9a202 += new x8e80e1c8bce8caf7.SplittingManagerFinishedEventHandler(this.xc555e814c1720baf);
                    goto label_31;
                }
                else
                {
                    goto label_2;
                }
            }
            else
            {
                goto label_18;
            }
        }