internal static x5678bb8d80c0f12e x2f8f74d308cc9f3f( DockContainer xd3311d815ca25f02, int[] x27bf3f6bb3609d15) { SplitLayoutSystem splitLayoutSystem = xd3311d815ca25f02.LayoutSystem; int[] numArray = x27bf3f6bb3609d15; for (int index1 = 0; index1 < numArray.Length; ++index1) { int index2 = numArray[index1]; if ((uint)index1 + (uint)index1 >= 0U) { goto label_7; } else { goto label_9; } label_5: SplitLayoutSystem layoutSystem = splitLayoutSystem.LayoutSystems[index2] as SplitLayoutSystem; x5678bb8d80c0f12e x5678bb8d80c0f12e; if (layoutSystem != null) { splitLayoutSystem = layoutSystem; if ((uint)index1 - (uint)index1 >= 0U) { continue; } goto label_11; } else { x5678bb8d80c0f12e = new x5678bb8d80c0f12e(splitLayoutSystem, index2); goto label_11; } label_7: if (index2 >= splitLayoutSystem.LayoutSystems.Count) { goto label_10; } else { goto label_5; } label_9: if (false) { goto label_5; } label_10: x5678bb8d80c0f12e = new x5678bb8d80c0f12e(splitLayoutSystem, splitLayoutSystem.LayoutSystems.Count); label_11: return(x5678bb8d80c0f12e); } return(new x5678bb8d80c0f12e(xd3311d815ca25f02.LayoutSystem, 0)); }
public x8e80e1c8bce8caf7( DockContainer container, SplitLayoutSystem splitLayout, LayoutSystemBase aboveLayout, LayoutSystemBase belowLayout, System.Drawing.Point startPoint, DockingHints dockingHints) : base((Control)container, dockingHints, false) { label_7: this.xd3311d815ca25f02 = container; this.xd0bab8a0f8013a7b = splitLayout; this.xc13a8191724b6d55 = aboveLayout; this.x5aa50bbadb0a1e6c = belowLayout; this.xcb09bd0cee4909a3 = startPoint; if (splitLayout.SplitMode == Orientation.Horizontal) { goto label_5; } else { goto label_3; } label_2: this.OnMouseMove(startPoint); return; label_3: this.xffa8345bf918658d = aboveLayout.Bounds.X + 25; do { this.xb646339c3b9e735a = belowLayout.Bounds.Right - 25; if (true) { if (true) { this.x3fb8b43b602e016f = aboveLayout.WorkingSize.Width + belowLayout.WorkingSize.Width; } else { goto label_7; } } else { goto label_5; } }while (false); goto label_2; label_5: this.xffa8345bf918658d = aboveLayout.Bounds.Y + 25; this.xb646339c3b9e735a = belowLayout.Bounds.Bottom - 25; this.x3fb8b43b602e016f = aboveLayout.WorkingSize.Height + belowLayout.WorkingSize.Height; goto label_2; }
public DockContainer() { this.x266365ea27fa7af8 = LicenseManager.Validate(typeof(DockContainer), (object)this) as xbd7c5470fc89975b; do { this.x35c76d526f88c3c8 = new SplitLayoutSystem(); this.x35c76d526f88c3c8.x56e964269d48cfcc(this); this.SetStyle(ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); }while (false); this.SetStyle(ControlStyles.Selectable, false); this.x83627743ea4ce5a2 = new ArrayList(); this.xac1c850120b1f254 = new xf8f9565783602018((Control)this); this.xac1c850120b1f254.xa6e4f463e64a5987 = false; this.xac1c850120b1f254.x9b21ee8e7ceaada3 += new xf8f9565783602018.x58986a4a0b75e5b5(this.xa3a7472ac4e61f76); this.BackColor = SystemColors.Control; }
internal void x272ed7848e373c56() { ++this.xa03963cfd21be862; this.x35c76d526f88c3c8.x56e964269d48cfcc((DockContainer)null); foreach (LayoutSystemBase layoutSystemBase in this.x83627743ea4ce5a2) { if (layoutSystemBase is ControlLayoutSystem) { ((ControlLayoutSystem)layoutSystemBase).Controls.Clear(); if (false) { break; } } } this.x35c76d526f88c3c8 = new SplitLayoutSystem(); }
private static bool xf96eb78473d85a37( DockContainer xd3311d815ca25f02, SplitLayoutSystem xb25822984a90695b) { foreach (LayoutSystemBase layoutSystem in (CollectionBase)xb25822984a90695b.LayoutSystems) { if (!(layoutSystem is SplitLayoutSystem)) { goto label_7; } else { goto label_9; } label_4: ControlLayoutSystem controlLayoutSystem; if (controlLayoutSystem.SelectedControl.Visible && controlLayoutSystem.SelectedControl.Enabled) { xd3311d815ca25f02.ActiveControl = (Control)controlLayoutSystem.SelectedControl; return(true); } continue; label_7: controlLayoutSystem = (ControlLayoutSystem)layoutSystem; if (controlLayoutSystem.Collapsed || !xd3311d815ca25f02.Controls.Contains((Control)controlLayoutSystem.SelectedControl)) { continue; } goto label_4; label_9: bool flag = LayoutUtilities.xf96eb78473d85a37(xd3311d815ca25f02, (SplitLayoutSystem)layoutSystem); if (((flag ? 1 : 0) & 0) == 0) { if (flag) { return(true); } } else { goto label_4; } } return(false); }
private void xc555e814c1720baf( LayoutSystemBase xc13a8191724b6d55, LayoutSystemBase x5aa50bbadb0a1e6c, float x5c2440c931f8d932, float x4afa341b2323a009) { SplitLayoutSystem x07bf3386da210f81 = this.x372569d2ea29984e.x07bf3386da210f81; if (true) { goto label_8; } else { goto label_2; } label_1: DesignerTransaction transaction; transaction.Commit(); x07bf3386da210f81.x3e0280cae730d1f2(); if (true) { return; } label_2: SizeF workingSize1; workingSize1.Width = x4afa341b2323a009; if (((int)(uint)x5c2440c931f8d932 & 0) != 0) { goto label_1; } label_3: SizeF workingSize2; xc13a8191724b6d55.WorkingSize = workingSize2; x5aa50bbadb0a1e6c.WorkingSize = workingSize1; IComponentChangeService service; service.OnComponentChanged((object)this.x0467b00af7810f0c, (MemberDescriptor)TypeDescriptor.GetProperties((object)this.x0467b00af7810f0c)["LayoutSystem"], (object)null, (object)null); goto label_1; label_8: do { this.x367ada130c39f434(); if (((int)(uint)x4afa341b2323a009 & 0) == 0) { transaction = this.xff9c60b45aa37b1e.CreateTransaction("Resize Docked Windows"); service = (IComponentChangeService)this.GetService(typeof(IComponentChangeService)); service.OnComponentChanging((object)this.x0467b00af7810f0c, (MemberDescriptor)TypeDescriptor.GetProperties((object)this.x0467b00af7810f0c)["LayoutSystem"]); workingSize2 = xc13a8191724b6d55.WorkingSize; workingSize1 = x5aa50bbadb0a1e6c.WorkingSize; if (x07bf3386da210f81.SplitMode != Orientation.Horizontal || (uint)x4afa341b2323a009 - (uint)x4afa341b2323a009 < 0U) { workingSize2.Width = x5c2440c931f8d932; } else { goto label_6; } } else { goto label_10; } }while ((uint)x5c2440c931f8d932 - (uint)x5c2440c931f8d932 > uint.MaxValue); goto label_11; label_6: workingSize2.Height = x5c2440c931f8d932; workingSize1.Height = x4afa341b2323a009; goto label_3; label_10: return; label_11: if ((uint)x4afa341b2323a009 + (uint)x5c2440c931f8d932 <= uint.MaxValue) { goto label_2; } }
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; } }
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); }
public x5678bb8d80c0f12e(SplitLayoutSystem splitLayoutSystem, int index) { this.x07bf3386da210f81 = splitLayoutSystem; this.xd1bdf42207dd3638 = index; }