internal void xe9a159cd1e028df2( SandDockManager x91f347c6e97f1846, DockContainer xd3311d815ca25f02, LayoutSystemBase x6e150040c8d97700, DockControl x43bec302f92080b9, int x9562cf1322eeedf1, System.Drawing.Point x6afebf16b45c02e0, DockingHints x48cee1d69929b4fe, DockingManager xab4835b6b3620991) { if (xab4835b6b3620991 == DockingManager.Whidbey) { goto label_5; } label_1: this.x531514c39973cbc6 = new xedb4922162c60d3d(x91f347c6e97f1846, this.DockContainer, this, x43bec302f92080b9, x9562cf1322eeedf1, x6afebf16b45c02e0, x48cee1d69929b4fe); label_2: this.x531514c39973cbc6.x67ecc0d0e7c9a202 += new xedb4922162c60d3d.DockingManagerFinishedEventHandler(this.x46ff430ed3944e0f); this.x531514c39973cbc6.x868a32060451dd2e += new EventHandler(this.x0ae87c4881d90427); if (true) { this.x531514c39973cbc6.OnMouseMove(Cursor.Position); return; } label_5: if (x890231ddf317379e.xca8cda6e489f8dd8()) { this.x531514c39973cbc6 = (xedb4922162c60d3d) new x31248f32f85df1dd(x91f347c6e97f1846, this.DockContainer, this, x43bec302f92080b9, x9562cf1322eeedf1, x6afebf16b45c02e0, x48cee1d69929b4fe); goto label_2; } else { goto label_1; } }
internal static ControlLayoutSystem[] x1494f515233a1246( DockContainer xd3311d815ca25f02) { ArrayList arrayList = new ArrayList(); IEnumerator enumerator = xd3311d815ca25f02.x83627743ea4ce5a2.GetEnumerator(); try { label_2: do { LayoutSystemBase current; do { if (!enumerator.MoveNext()) { if (true) { goto label_9; } } current = (LayoutSystemBase)enumerator.Current; }while (!(current is ControlLayoutSystem)); arrayList.Add((object)current); }while (false); goto label_2; } finally { (enumerator as IDisposable)?.Dispose(); } label_9: return((ControlLayoutSystem[])arrayList.ToArray(typeof(ControlLayoutSystem))); }
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 static ControlLayoutSystem FindControlLayoutSystem( DockContainer container) { foreach (LayoutSystemBase layoutSystemBase in container.x83627743ea4ce5a2) { if (layoutSystemBase is ControlLayoutSystem) { return((ControlLayoutSystem)layoutSystemBase); } } return((ControlLayoutSystem)null); }
internal static DockSituation x8d287cc6f0a2f529(DockContainer xd3311d815ca25f02) { if (xd3311d815ca25f02 == null) { return(DockSituation.None); } if (xd3311d815ca25f02.IsFloating) { return(DockSituation.Floating); } return(xd3311d815ca25f02.Dock == DockStyle.Fill ? DockSituation.Document : DockSituation.Docked); }
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 SplitLayoutSystem ReadSplitLayoutSystem(XmlNode splitNode, DockContainer container) { SizeF workingSize = ConvertStringToSizeF(splitNode.Attributes["WorkingSize"].Value); workingSize.Width = Math.Max(workingSize.Width, 1f); workingSize.Height = Math.Max(workingSize.Height, 1f); Orientation splitMode = (Orientation)int.Parse(splitNode.Attributes["SplitMode"].Value); ArrayList arrayList = new ArrayList(); foreach (XmlNode xmlNode in splitNode.ChildNodes) { if (xmlNode.NodeType == XmlNodeType.Element) { if (xmlNode.Name == "SplitLayoutSystem") { SplitLayoutSystem splitLayoutSystem = this.ReadSplitLayoutSystem(xmlNode, container); if (splitLayoutSystem != null) { arrayList.Add(splitLayoutSystem); continue; } continue; } } if (xmlNode.NodeType == XmlNodeType.Element) { if (xmlNode.Name == "ControlLayoutSystem") { ControlLayoutSystem controlLayoutSystem = this.ReadControlLayoutSystem(xmlNode, container); if (controlLayoutSystem != null) { arrayList.Add(controlLayoutSystem); } } } } if (arrayList.Count == 0) { return null; } return new SplitLayoutSystem(workingSize, splitMode, (LayoutSystemBase[])arrayList.ToArray(typeof(LayoutSystemBase))); }
public x09c1c18390e52ebf(SandDockManager manager, DockContainer container, System.Drawing.Point startPoint) : base((Control)container, manager.DockingHints, false) { if (true) { goto label_20; } else { goto label_17; } label_1: this.OnMouseMove(startPoint); return; label_8: Rectangle rectangle; int num1; int x555227b0d2a372bd; this.xffa8345bf918658d = Math.Max(rectangle.Left + 20, startPoint.X - (num1 - x555227b0d2a372bd)); if (false) { ; } int num2; this.xb646339c3b9e735a = startPoint.X + (x555227b0d2a372bd - num2); this.xf623ffb827affd4f = startPoint.X - container.x0c42f19be578ccee.X; goto label_1; label_16: int val1; num2 = Math.Max(val1, LayoutUtilities.xc6fb69ef430eaa44(container)); if (manager != null) { goto label_13; } label_12: int num3 = 500; goto label_14; label_13: num3 = manager.MaximumDockContainerSize; label_14: num1 = num3; x555227b0d2a372bd = container.x555227b0d2a372bd; if ((uint)num1 <= uint.MaxValue) { if ((uint)num2 + (uint)num2 >= 0U) { switch (container.Dock) { case DockStyle.Top: this.xffa8345bf918658d = startPoint.Y - (x555227b0d2a372bd - num2); if ((uint)x555227b0d2a372bd + (uint)x555227b0d2a372bd <= uint.MaxValue) { break; } goto label_1; case DockStyle.Bottom: this.xffa8345bf918658d = Math.Max(rectangle.Top + 20, startPoint.Y - (num1 - x555227b0d2a372bd)); this.xb646339c3b9e735a = startPoint.Y + (x555227b0d2a372bd - num2); if (true) { if ((num2 | 2) != 0) { this.xf623ffb827affd4f = startPoint.Y - container.x0c42f19be578ccee.Y; if ((uint)num2 - (uint)num2 < 0U) { return; } goto label_1; } else { break; } } else { goto label_1; } case DockStyle.Left: this.xffa8345bf918658d = startPoint.X - (x555227b0d2a372bd - num2); this.xb646339c3b9e735a = Math.Min(rectangle.Right - 20, startPoint.X + (num1 - x555227b0d2a372bd)); this.xf623ffb827affd4f = startPoint.X - container.x0c42f19be578ccee.X; goto label_1; case DockStyle.Right: goto label_8; default: goto label_1; } this.xb646339c3b9e735a = Math.Min(rectangle.Bottom - 20, startPoint.Y + (num1 - x555227b0d2a372bd)); this.xf623ffb827affd4f = startPoint.Y - container.x0c42f19be578ccee.Y; goto label_1; } else { goto label_12; } } else { goto label_1; } label_17: int num4; if ((num4 | -1) == 0) { goto label_8; } label_18: val1 = 30; goto label_16; label_20: this.xd3311d815ca25f02 = container; Rectangle empty = Rectangle.Empty; rectangle = xedb4922162c60d3d.xc68a4bb946c59a9e(xedb4922162c60d3d.x41c62f474d3fb367(container.Parent), container.Parent); rectangle = new Rectangle(container.PointToClient(rectangle.Location), rectangle.Size); if (manager != null) { val1 = manager.MinimumDockContainerSize; goto label_16; } else { goto label_18; } }
private void method_11(DockContainer container, ArrayList arrayList_0) { if ((container.Width > 0 || container.Height > 0) && container.Enabled && container.Visible) { method_12(container, container.LayoutSystem, arrayList_0); } }
private ControlLayoutSystem ReadControlLayoutSystem(XmlNode controlNode, DockContainer container) { Guid empty = Guid.Empty; SizeF size = SandDockManager.ConvertStringToSizeF(controlNode.Attributes["WorkingSize"].Value); bool collapsed = this.ConvertStringToBool(controlNode.Attributes["Collapsed"].Value); DockControl dockControl = null; if (controlNode.Attributes["SelectedControl"] != null) { Guid guid = new Guid(controlNode.Attributes["SelectedControl"].Value); dockControl = this.FindControl(guid); } if (controlNode.Attributes["Guid"] != null) { empty = new Guid(controlNode.Attributes["Guid"].Value); } ArrayList arrayList = new ArrayList(); foreach (XmlNode xmlNode in controlNode.ChildNodes) { if (xmlNode.NodeType == XmlNodeType.Element && xmlNode.Name == "Controls") { foreach (XmlNode xmlNode2 in xmlNode.ChildNodes) { if (xmlNode2.NodeType == XmlNodeType.Element && xmlNode2.Name == "Control") { Guid guid2 = new Guid(xmlNode2.Attributes["Guid"].Value); DockControl dockControl2 = this.FindControl(guid2); if (dockControl2 != null) { arrayList.Add(dockControl2); } } } } } if (arrayList.Count == 0) { return null; } ControlLayoutSystem controlLayoutSystem = container.CreateNewLayoutSystem(size); controlLayoutSystem.Controls.AddRange((DockControl[])arrayList.ToArray(typeof(DockControl))); if (dockControl != null) { controlLayoutSystem.SelectedControl = dockControl; } controlLayoutSystem.Collapsed = collapsed; if (empty != Guid.Empty) { controlLayoutSystem.Guid = empty; } return controlLayoutSystem; }
private DockTarget method_14(DockContainer dockContainer_1, ControlLayoutSystem controlLayoutSystem_1, Point point_1) { DockTarget dockTarget = null; Point point = dockContainer_1.PointToClient(point_1); var rectangle_ = controlLayoutSystem_1.rectangle_3; if (new Rectangle(rectangle_.Left, rectangle_.Top, rectangle_.Width, 30).Contains(point)) { dockTarget = method_21(dockContainer_1, controlLayoutSystem_1); if (point.X >= rectangle_.Left + 30) { if (point.X > rectangle_.Right - 30) { method_17(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } else { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget, DockSide.Top); } } else { method_18(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } else if (new Rectangle(rectangle_.Left, rectangle_.Top, 30, rectangle_.Height).Contains(point)) { dockTarget = method_21(dockContainer_1, controlLayoutSystem_1); if (point.Y >= rectangle_.Top + 30) { if (point.Y <= rectangle_.Bottom - 30) { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget, DockSide.Left); } else { method_16(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } else { method_18(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } else if (!new Rectangle(rectangle_.Right - 30, rectangle_.Top, 30, rectangle_.Height).Contains(point)) { if (new Rectangle(rectangle_.Left, rectangle_.Bottom - 30, rectangle_.Width, 30).Contains(point)) { dockTarget = method_21(dockContainer_1, controlLayoutSystem_1); if (point.X >= rectangle_.Left + 30) { if (point.X <= rectangle_.Right - 30) { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget, DockSide.Bottom); } else { method_15(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } else { method_16(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } } else { dockTarget = method_21(dockContainer_1, controlLayoutSystem_1); if (point.Y >= rectangle_.Top + 30) { if (point.Y <= rectangle_.Bottom - 30) { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget, DockSide.Right); } else { method_15(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } else { method_17(dockContainer_1, controlLayoutSystem_1, dockTarget, rectangle_, point); } } return dockTarget; }
internal static int xc6fb69ef430eaa44(DockContainer x0467b00af7810f0c) { return((x0467b00af7810f0c.AllowResize ? 4 : 0) + LayoutUtilities.xd47535e893e9796b(x0467b00af7810f0c.LayoutSystem, x0467b00af7810f0c.x61c108cc44ef385a ? Orientation.Vertical : Orientation.Horizontal) * 5); }
public Class8(SandDockManager manager, DockContainer container, LayoutSystemBase sourceControlSystem, DockControl sourceControl, int dockedSize, Point startPoint, DockingHints dockingHints) : base(manager, container, sourceControlSystem, sourceControl, dockedSize, startPoint, dockingHints) { arrayList_0 = new ArrayList(); if (Manager?.DockSystemContainer != null) method_22(); }
private void method_12(DockContainer dockContainer_1, SplitLayoutSystem splitLayoutSystem_0, ArrayList arrayList_0) { foreach (LayoutSystemBase layoutSystemBase in splitLayoutSystem_0.LayoutSystems) { if (!(layoutSystemBase is SplitLayoutSystem)) { if (layoutSystemBase is ControlLayoutSystem) { if (SourceControl == null || layoutSystemBase != SourceControlSystem) { goto IL_59; } if (SourceControl.LayoutSystem.Controls.Count != 1) { goto IL_59; } bool arg_67_0 = false; IL_67: if (arg_67_0) { arrayList_0.Add(layoutSystemBase); } continue; IL_59: arg_67_0 = !((ControlLayoutSystem)layoutSystemBase).Collapsed; goto IL_67; } } else { method_12(dockContainer_1, (SplitLayoutSystem)layoutSystemBase, arrayList_0); } } }
internal Rectangle method_20(DockContainer container, ControlLayoutSystem layoutSystem, DockSide dockSide) { var result = new Rectangle(container.PointToScreen(layoutSystem.Bounds.Location), layoutSystem.Bounds.Size); switch (dockSide) { case DockSide.Top: result.Height /= 2; break; case DockSide.Bottom: result.Offset(0, result.Height / 2); result.Height /= 2; break; case DockSide.Left: result.Width /= 2; break; case DockSide.Right: result.Offset(result.Width / 2, 0); result.Width /= 2; break; } return result; }
private DockTarget method_21(DockContainer container, ControlLayoutSystem layoutSystem) { return new DockTarget(DockTargetType.SplitExistingSystem) { dockContainer = container, layoutSystem = layoutSystem }; }
private void method_19(DockContainer container, ControlLayoutSystem layoutSystem, DockTarget dockTarget, DockSide dockSide) { dockTarget.Bounds = method_20(container, layoutSystem, dockSide); dockTarget.DockSide = dockSide; }
private void method_18(DockContainer dockContainer_1, ControlLayoutSystem controlLayoutSystem_1, DockTarget dockTarget_1, Rectangle rectangle_1, Point point_1) { point_1.X -= rectangle_1.Left; point_1.Y -= rectangle_1.Top; rectangle_1 = new Rectangle(0, 0, 30, 30); if (point_1.Y <= rectangle_1.Top + (int)(rectangle_1.Height * (point_1.X / (float)rectangle_1.Width))) { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget_1, DockSide.Top); } else { method_19(dockContainer_1, controlLayoutSystem_1, dockTarget_1, DockSide.Left); } }
private void method_15(DockContainer dockContainer_1, ControlLayoutSystem controlLayoutSystem_1, DockTarget dockTarget_1, Rectangle rectangle_1, Point point_1) { rectangle_1.X = rectangle_1.Right - 30; rectangle_1.Y = rectangle_1.Bottom - 30; point_1.X -= rectangle_1.Left; point_1.Y -= rectangle_1.Top; rectangle_1 = new Rectangle(0, 0, 30, 30); method_19(dockContainer_1, controlLayoutSystem_1, dockTarget_1, point_1.Y > rectangle_1.Top + (int)(rectangle_1.Height * ((float)point_1.X / rectangle_1.Width)) ? DockSide.Bottom : DockSide.Right); }
private void SaveContainerLayout(DockContainer container, XmlTextWriter writer) { if (container is FloatingContainer) { FloatingContainer @class = (FloatingContainer)container; writer.WriteStartElement("FloatingContainer"); writer.WriteAttributeString("Bounds", this.ConvertRectangleToString(@class.FloatingBounds)); writer.WriteAttributeString("Guid", @class.Guid.ToString()); this.SaveLayoutSystem(container.LayoutSystem, writer); writer.WriteEndElement(); return; } if (!(container is DocumentContainer)) { writer.WriteStartElement("Container"); } else { writer.WriteStartElement("DocumentContainer"); } writer.WriteAttributeString("Dock", ((int)container.Dock).ToString()); if (container.Dock != DockStyle.Fill) { if (container.Dock != DockStyle.None) { writer.WriteAttributeString("ContentSize", container.ContentSize.ToString()); } } SaveLayoutSystem(container.LayoutSystem, writer); writer.WriteEndElement(); }
internal void method_0(SandDockManager manager, DockContainer container, LayoutSystemBase layoutSystem, DockControl control, int int_2, Point point_0, DockingHints dockingHints, DockingManager dockingManager_0) { if (dockingManager_0 == DockingManager.Whidbey && AbstractManager.smethod_0()) { class7_0 = new Class8(manager, DockContainer, this, control, int_2, point_0, dockingHints); } else { class7_0 = new Class7(manager, DockContainer, this, control, int_2, point_0, dockingHints); } class7_0.DockingManagerFinished += OnDockingManagerFinished; class7_0.Cancalled += OnCancalled; class7_0.OnMouseMove(Cursor.Position); }
internal virtual void SetDockContainer(DockContainer container) { DockContainer = container; }
internal static void x4487f2f8917e3fd0(ControlLayoutSystem x6e150040c8d97700) { if (x6e150040c8d97700 == null) { throw new ArgumentNullException(); } DockContainer dockContainer = x6e150040c8d97700.DockContainer; if (x6e150040c8d97700.x10ac79a4257c7f52 != null) { goto label_22; } else { goto label_15; } label_1: if (!dockContainer.x61d88745bde7a5ec()) { return; } goto label_8; label_3: if (x6e150040c8d97700.Parent == null) { return; } goto label_17; label_7: dockContainer.Dispose(); return; label_8: if (!(dockContainer is DocumentContainer)) { goto label_7; } label_9: if (dockContainer.Manager != null && dockContainer.Manager.EnableEmptyEnvironment) { return; } goto label_7; label_15: if (false) { if (false) { if (false) { if (false) { goto label_3; } else { goto label_8; } } else { goto label_1; } } } else { goto label_3; } label_17: x6e150040c8d97700.Parent.LayoutSystems.Remove((LayoutSystemBase)x6e150040c8d97700); if (dockContainer == null) { if (true) { if (false) { goto label_1; } } else if (true) { goto label_1; } if (true) { return; } goto label_9; } else { goto label_1; } label_22: if (x6e150040c8d97700.x10ac79a4257c7f52.x23498f53d87354d4 == x6e150040c8d97700) { x6e150040c8d97700.x10ac79a4257c7f52.xcdb145600c1b7224(true); if (false) { goto label_9; } else { goto label_3; } } else { goto label_3; } }
internal void UnregisterDockContainer(DockContainer container) { if (_containers.Contains(container)) _containers.Remove(container); if (DocumentContainer == container) DocumentContainer = null; }
protected DockTarget method_13(DockContainer dockContainer_1, ControlLayoutSystem controlLayoutSystem_1, Point point_1, bool bool_2) { DockTarget dockTarget = new DockTarget(DockTargetType.Undefined); Point point = dockContainer_1.PointToClient(point_1); if (SourceControl != null || controlLayoutSystem_1 != SourceControlSystem) { if (controlLayoutSystem_1.Rectangle_0.Contains(point) || controlLayoutSystem_1.rectangle_2.Contains(point)) { dockTarget = new DockTarget(DockTargetType.JoinExistingSystem) { dockContainer = dockContainer_1, layoutSystem = controlLayoutSystem_1, DockSide = DockSide.None, Bounds = new Rectangle(dockContainer_1.PointToScreen(controlLayoutSystem_1.Bounds.Location), controlLayoutSystem_1.Bounds.Size) }; dockTarget.index = !controlLayoutSystem_1.rectangle_2.Contains(point) ? controlLayoutSystem_1.Controls.Count : controlLayoutSystem_1.method_15(point); } if (dockTarget.type == DockTargetType.Undefined && bool_2) { dockTarget = method_14(dockContainer_1, controlLayoutSystem_1, point_1); } return dockTarget; } return controlLayoutSystem_1.Rectangle_0.Contains(point) ? new DockTarget(DockTargetType.None) : new DockTarget(DockTargetType.Undefined); }
internal virtual void x56e964269d48cfcc(DockContainer x0467b00af7810f0c) { this.x0467b00af7810f0c = x0467b00af7810f0c; }
internal DockContainer[] GetDockContainers(DockStyle dockStyle) { if (dockStyle == DockStyle.Fill) throw new ArgumentException(nameof(dockStyle)); if (DockSystemContainer == null) return new DockContainer[0]; var array = new DockContainer[DockSystemContainer.Controls.Count]; int num = 0; for (int i = DockSystemContainer.Controls.Count - 1; i >= 0; i--) { var dockContainer = DockSystemContainer.Controls[i] as DockContainer; if (dockContainer?.Dock == dockStyle) { array[num++] = dockContainer; } } DockContainer[] array2 = new DockContainer[num]; Array.Copy(array, array2, num); return array2; }
internal static void xf1cbd48a28ce6e74(DockControl x43bec302f92080b9) { if (x43bec302f92080b9 == null) { throw new ArgumentNullException(); } ControlLayoutSystem layoutSystem = x43bec302f92080b9.LayoutSystem; bool flag; if (((flag ? 1 : 0) & 0) != 0 || layoutSystem == null) { return; } DockContainer dockContainer = layoutSystem.DockContainer; bool containsFocus = x43bec302f92080b9.ContainsFocus; if (false) { goto label_4; } else { goto label_15; } label_1: if (!containsFocus) { return; } if (x43bec302f92080b9.Manager == null) { if (((containsFocus ? 1 : 0) | 4) != 0) { return; } } else { goto label_9; } label_7: DockControl recentlyUsedWindow = x43bec302f92080b9.Manager.FindMostRecentlyUsedWindow(~DockSituation.None, x43bec302f92080b9); goto label_8; label_9: recentlyUsedWindow = x43bec302f92080b9.Manager.FindMostRecentlyUsedWindow(DockSituation.Document, x43bec302f92080b9); if (recentlyUsedWindow != null) { goto label_8; } else { goto label_7; } label_3: recentlyUsedWindow.x6d1b64d6c637a91d(true); return; label_4: if (true) { if (false) { goto label_3; } else { goto label_1; } } label_8: if (recentlyUsedWindow == null) { return; } goto label_3; label_15: if (containsFocus) { goto label_16; } label_12: layoutSystem.Controls.Remove(x43bec302f92080b9); while (layoutSystem.Controls.Count == 0) { LayoutUtilities.x4487f2f8917e3fd0(layoutSystem); if (true) { break; } } goto label_1; label_16: Form form = x43bec302f92080b9.FindForm(); if ((uint)containsFocus + (uint)containsFocus < 0U || form != null) { form.ActiveControl = (Control)null; goto label_12; } else { goto label_12; } }
private void ReadContainerProperties(XmlNode containerNode, DockContainer container) { var dockStyle = (DockStyle)int.Parse(containerNode.Attributes["Dock"].Value); int contentSize = 0; if (containerNode.Attributes["ContentSize"] != null) { contentSize = int.Parse(containerNode.Attributes["ContentSize"].Value); } if (container == null) { container = CreateNewDockContainer(LayoutUtilities.Convert(dockStyle), ContainerDockEdge.Outside, contentSize); } container.Dock = dockStyle; container.ContentSize = contentSize; foreach (XmlNode xmlNode in containerNode.ChildNodes) { if (xmlNode.NodeType == XmlNodeType.Element) { if (xmlNode.Name == "SplitLayoutSystem") { SplitLayoutSystem splitLayoutSystem = ReadSplitLayoutSystem(xmlNode, container); if (splitLayoutSystem != null) { container.LayoutSystem = splitLayoutSystem; break; } container.Dispose(); break; } } } }
protected override void Dispose(bool disposing) { if (disposing) { var array = new DockContainer[_containers.Count]; _containers.CopyTo(array); foreach (var dockContainer in array) dockContainer.Dispose(); _containers.Clear(); var array3 = new AutoHideBar[_autoHideBars.Count]; _autoHideBars.CopyTo(array3); var array4 = array3; foreach (var control in array4) control.Dispose(); _autoHideBars.Clear(); } base.Dispose(disposing); }
public Class7(SandDockManager manager, DockContainer container, LayoutSystemBase sourceControlSystem, DockControl sourceControl, int dockedSize, Point startPoint, DockingHints dockingHints) : base(container, dockingHints, true, container.Renderer.TabStripMetrics.Height) { Manager = manager; Container = container; SourceControlSystem = sourceControlSystem; SourceControl = sourceControl; DockedSize = dockedSize; if (container is DocumentContainer) { cursor_0 = new Cursor(GetType().Assembly.GetManifestResourceStream("TD.SandDock.Resources.splitting.cur")); cursor_1 = new Cursor(GetType().Assembly.GetManifestResourceStream("TD.SandDock.Resources.splittingno.cur")); } if (sourceControlSystem is SplitLayoutSystem) { size_0 = ((FloatingContainer)container).FloatingSize; } else if (sourceControl == null) { size_0 = (sourceControlSystem as ControlLayoutSystem)?.SelectedControl?.FloatingSize ?? sourceControlSystem.Bounds.Size; } else { size_0 = sourceControl.FloatingSize; } var bounds = sourceControlSystem.Bounds; if (bounds.Width <= 0) { startPoint.X = size_0.Width / 2; } else { startPoint.X -= bounds.Left; startPoint.X = Convert.ToInt32(startPoint.X / (float)bounds.Width * size_0.Width); } point_0 = sourceControl == null ? new Point(startPoint.X, startPoint.Y - bounds.Top) : new Point(startPoint.X, size_0.Height - (bounds.Bottom - startPoint.Y)); point_0.Y = Math.Max(point_0.Y, 0); point_0.Y = Math.Min(point_0.Y, size_0.Height); ControlLayoutSystem_0 = method_10(); Container.OnDockingStarted(EventArgs.Empty); }
internal override void SetDockContainer(DockContainer container) { base.SetDockContainer(container); foreach (LayoutSystemBase layoutSystemBase in LayoutSystems) layoutSystemBase.SetDockContainer(container); }
private void InitializeComponent() { this.components = new Container(); this.codeMapViewerDock1 = new CodeMapViewerDock(); this.sandDockManager1 = new SandDockManager(); this.statusStrip1 = new StatusStrip(); this.toolStripStatusLabel1 = new ToolStripStatusLabel(); this.lineStatusLabel = new ToolStripStatusLabel(); this.columnStatusLabel = new ToolStripStatusLabel(); this.sandBarManager1 = new SandBarManager(this.components); this.leftSandBarDock = new ToolBarContainer(); this.rightSandBarDock = new ToolBarContainer(); this.bottomSandBarDock = new ToolBarContainer(); this.topSandBarDock = new ToolBarContainer(); this.menuBar1 = new MenuBar(); this.menuBarItem1 = new MenuBarItem(); this.newFileMenuItem = new MenuButtonItem(); this.openScriptMenuItem = new MenuButtonItem(); this.saveScriptMenuItem = new MenuButtonItem(); this.exitMenuItem = new MenuButtonItem(); this.menuBarItem2 = new MenuBarItem(); this.undoMenuItem = new MenuButtonItem(); this.redoMenuItem = new MenuButtonItem(); this.cutMenuItem = new MenuButtonItem(); this.copyMenuItem = new MenuButtonItem(); this.pasteMenuItem = new MenuButtonItem(); this.menuBarItem3 = new MenuBarItem(); this.mapViewerMenuItem = new MenuButtonItem(); this.menuBarItem4 = new MenuBarItem(); this.runMenuItem = new MenuButtonItem(); this.menuBarItem5 = new MenuBarItem(); this.toolBar1 = new TD.SandBar.ToolBar(); this.buttonItem1 = new ButtonItem(); this.buttonItem3 = new ButtonItem(); this.buttonItem2 = new ButtonItem(); this.buttonItem4 = new ButtonItem(); this.buttonItem5 = new ButtonItem(); this.buttonItem6 = new ButtonItem(); this.buttonItem8 = new ButtonItem(); this.buttonItem9 = new ButtonItem(); this.buttonItem7 = new ButtonItem(); this.openFileDialog = new OpenFileDialog(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.cutToolStripMenuItem = new ToolStripMenuItem(); this.copyToolStripMenuItem = new ToolStripMenuItem(); this.pasteToolStripMenuItem = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.insertFunctionToolStripMenuItem = new ToolStripMenuItem(); this.insertTextureEntryIDToolStripMenuItem = new ToolStripMenuItem(); this.insertCollectionEntryIDToolStripMenuItem = new ToolStripMenuItem(); DockContainer dockContainer = new DockContainer(); dockContainer.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.topSandBarDock.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); base.SuspendLayout(); dockContainer.Controls.Add(this.codeMapViewerDock1); dockContainer.Dock = DockStyle.Right; dockContainer.LayoutSystem = new SplitLayoutSystem(250, 312, Orientation.Horizontal, new LayoutSystemBase[] { new ControlLayoutSystem(250, 312, new DockControl[] { this.codeMapViewerDock1 }, this.codeMapViewerDock1) }); dockContainer.Location = new Point(274, 49); dockContainer.Manager = this.sandDockManager1; dockContainer.Name = "dockContainer1"; dockContainer.Size = new Size(254, 312); dockContainer.TabIndex = 6; this.codeMapViewerDock1.Guid = new Guid("40b77176-f5ac-44ce-a28c-d2f296197e1d"); this.codeMapViewerDock1.Image = null; this.codeMapViewerDock1.Location = new Point(4, 18); this.codeMapViewerDock1.Name = "codeMapViewerDock1"; this.codeMapViewerDock1.Size = new Size(250, 270); this.codeMapViewerDock1.TabIndex = 0; this.codeMapViewerDock1.Text = "Map Viewer"; this.sandDockManager1.DockSystemContainer = this; this.sandDockManager1.OwnerForm = this; this.sandDockManager1.ActiveTabbedDocumentChanged += new EventHandler(this.sandDockManager1_ActiveTabbedDocumentChanged); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel1, this.lineStatusLabel, this.columnStatusLabel }); this.statusStrip1.Location = new Point(0, 361); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(528, 22); this.statusStrip1.TabIndex = 1; this.statusStrip1.Text = "statusStrip1"; this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new Size(447, 17); this.toolStripStatusLabel1.Spring = true; this.lineStatusLabel.Name = "lineStatusLabel"; this.lineStatusLabel.Size = new Size(35, 17); this.lineStatusLabel.Text = "Line 0"; this.columnStatusLabel.Name = "columnStatusLabel"; this.columnStatusLabel.Size = new Size(31, 17); this.columnStatusLabel.Text = "Col 0"; this.sandBarManager1.OwnerForm = this; this.leftSandBarDock.Dock = DockStyle.Left; this.leftSandBarDock.Guid = new Guid("f51f9d3c-d12d-4b04-b3c1-dba150a785e6"); this.leftSandBarDock.Location = new Point(0, 49); this.leftSandBarDock.Manager = this.sandBarManager1; this.leftSandBarDock.Name = "leftSandBarDock"; this.leftSandBarDock.Size = new Size(0, 334); this.leftSandBarDock.TabIndex = 2; this.rightSandBarDock.Dock = DockStyle.Right; this.rightSandBarDock.Guid = new Guid("c3e7b6e1-de74-4788-aa84-badf07d4feb3"); this.rightSandBarDock.Location = new Point(528, 49); this.rightSandBarDock.Manager = this.sandBarManager1; this.rightSandBarDock.Name = "rightSandBarDock"; this.rightSandBarDock.Size = new Size(0, 334); this.rightSandBarDock.TabIndex = 3; this.bottomSandBarDock.Dock = DockStyle.Bottom; this.bottomSandBarDock.Guid = new Guid("214365d9-c066-4c57-b2e9-f4e9b8b58fd5"); this.bottomSandBarDock.Location = new Point(0, 383); this.bottomSandBarDock.Manager = this.sandBarManager1; this.bottomSandBarDock.Name = "bottomSandBarDock"; this.bottomSandBarDock.Size = new Size(528, 0); this.bottomSandBarDock.TabIndex = 4; this.topSandBarDock.Controls.Add(this.menuBar1); this.topSandBarDock.Controls.Add(this.toolBar1); this.topSandBarDock.Dock = DockStyle.Top; this.topSandBarDock.Guid = new Guid("31bfec4a-f321-4810-8e02-c4eccad1d7f9"); this.topSandBarDock.Location = new Point(0, 0); this.topSandBarDock.Manager = this.sandBarManager1; this.topSandBarDock.Name = "topSandBarDock"; this.topSandBarDock.Size = new Size(528, 49); this.topSandBarDock.TabIndex = 5; this.menuBar1.Guid = new Guid("0188290c-f307-4042-a99f-b3a2a1517a38"); this.menuBar1.Items.AddRange(new ToolbarItemBase[] { this.menuBarItem1, this.menuBarItem2, this.menuBarItem3, this.menuBarItem4, this.menuBarItem5 }); this.menuBar1.Location = new Point(2, 0); this.menuBar1.Name = "menuBar1"; this.menuBar1.OwnerForm = this; this.menuBar1.Size = new Size(526, 23); this.menuBar1.TabIndex = 0; this.menuBar1.Text = "menuBar1"; this.menuBarItem1.Items.AddRange(new ToolbarItemBase[] { this.newFileMenuItem, this.openScriptMenuItem, this.saveScriptMenuItem, this.exitMenuItem }); this.menuBarItem1.Text = "&File"; this.newFileMenuItem.Image = Resources.newMap; this.newFileMenuItem.Shortcut = Shortcut.CtrlN; this.newFileMenuItem.Text = "New script"; this.newFileMenuItem.Activate += new EventHandler(this.newFileMenuItem_Activate); this.openScriptMenuItem.Image = Resources.openMap; this.openScriptMenuItem.Shortcut = Shortcut.CtrlO; this.openScriptMenuItem.Text = "Open script"; this.openScriptMenuItem.Activate += new EventHandler(this.openScriptMenuItem_Activate); this.saveScriptMenuItem.BeginGroup = true; this.saveScriptMenuItem.Image = Resources.save; this.saveScriptMenuItem.Shortcut = Shortcut.CtrlS; this.saveScriptMenuItem.Text = "Save script"; this.saveScriptMenuItem.Activate += new EventHandler(this.saveScriptMenuItem_Activate); this.exitMenuItem.Text = "Exit"; this.menuBarItem2.Items.AddRange(new ToolbarItemBase[] { this.undoMenuItem, this.redoMenuItem, this.cutMenuItem, this.copyMenuItem, this.pasteMenuItem }); this.menuBarItem2.Text = "&Edit"; this.undoMenuItem.Image = Resources.undo; this.undoMenuItem.Shortcut = Shortcut.CtrlZ; this.undoMenuItem.Text = "&Undo"; this.undoMenuItem.Activate += new EventHandler(this.undoMenuItem_Activate); this.redoMenuItem.Image = Resources.redo; this.redoMenuItem.Shortcut = Shortcut.CtrlShiftZ; this.redoMenuItem.Text = "&Redo"; this.cutMenuItem.BeginGroup = true; this.cutMenuItem.Image = Resources.cut; this.cutMenuItem.Shortcut = Shortcut.CtrlX; this.cutMenuItem.Text = "C&ut"; this.cutMenuItem.Activate += new EventHandler(this.cutMenuItem_Activate); this.copyMenuItem.Image = Resources.copy; this.copyMenuItem.Shortcut = Shortcut.CtrlC; this.copyMenuItem.Text = "&Copy"; this.copyMenuItem.Activate += new EventHandler(this.copyMenuItem_Activate); this.pasteMenuItem.Image = Resources.paste; this.pasteMenuItem.Shortcut = Shortcut.CtrlV; this.pasteMenuItem.Text = "&Paste"; this.pasteMenuItem.Activate += new EventHandler(this.pasteMenuItem_Activate); this.menuBarItem3.Items.AddRange(new ToolbarItemBase[] { this.mapViewerMenuItem }); this.menuBarItem3.Text = "&View"; this.mapViewerMenuItem.Text = "Map Viewer"; this.mapViewerMenuItem.Activate += new EventHandler(this.mapViewerMenuItem_Activate); this.menuBarItem4.Items.AddRange(new ToolbarItemBase[] { this.runMenuItem }); this.menuBarItem4.MdiWindowList = true; this.menuBarItem4.Text = "&Script"; this.runMenuItem.Image = Resources.PlayHS; this.runMenuItem.Shortcut = Shortcut.F5; this.runMenuItem.Text = "&Run"; this.runMenuItem.Activate += new EventHandler(this.runMenuItem_Activate); this.menuBarItem5.Text = "&Help"; this.toolBar1.DockLine = 1; this.toolBar1.Guid = new Guid("46756475-373b-4e41-8b89-f8ab1b41c370"); this.toolBar1.Items.AddRange(new ToolbarItemBase[] { this.buttonItem1, this.buttonItem3, this.buttonItem2, this.buttonItem4, this.buttonItem5, this.buttonItem6, this.buttonItem8, this.buttonItem9, this.buttonItem7 }); this.toolBar1.Location = new Point(2, 23); this.toolBar1.Name = "toolBar1"; this.toolBar1.Size = new Size(252, 26); this.toolBar1.TabIndex = 1; this.toolBar1.Text = "toolBar1"; this.buttonItem1.BuddyMenu = this.newFileMenuItem; this.buttonItem1.Image = Resources.newMap; this.buttonItem3.BuddyMenu = this.openScriptMenuItem; this.buttonItem3.Image = Resources.openMap; this.buttonItem2.BuddyMenu = this.saveScriptMenuItem; this.buttonItem2.Image = Resources.save; this.buttonItem4.BeginGroup = true; this.buttonItem4.BuddyMenu = this.cutMenuItem; this.buttonItem4.Image = Resources.cut; this.buttonItem5.BuddyMenu = this.copyMenuItem; this.buttonItem5.Image = Resources.copy; this.buttonItem6.BuddyMenu = this.pasteMenuItem; this.buttonItem6.Image = Resources.paste; this.buttonItem8.BeginGroup = true; this.buttonItem8.BuddyMenu = this.undoMenuItem; this.buttonItem8.Image = Resources.undo; this.buttonItem9.BuddyMenu = this.redoMenuItem; this.buttonItem9.Image = Resources.redo; this.buttonItem7.BeginGroup = true; this.buttonItem7.BuddyMenu = this.runMenuItem; this.buttonItem7.Image = Resources.PlayHS; this.openFileDialog.DefaultExt = "lua"; this.openFileDialog.FileName = "openFileDialog1"; this.openFileDialog.Filter = "Far Cry 2 script files (*.lua)|*.lua|All files (*.*)|*.*"; this.openFileDialog.Title = "Open script"; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.cutToolStripMenuItem, this.copyToolStripMenuItem, this.pasteToolStripMenuItem, this.toolStripSeparator1, this.insertFunctionToolStripMenuItem, this.insertTextureEntryIDToolStripMenuItem, this.insertCollectionEntryIDToolStripMenuItem }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(194, 164); this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; this.cutToolStripMenuItem.Size = new Size(193, 22); this.cutToolStripMenuItem.Text = "Cut"; this.cutToolStripMenuItem.Click += new EventHandler(this.cutToolStripMenuItem_Click); this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.Size = new Size(193, 22); this.copyToolStripMenuItem.Text = "Copy"; this.copyToolStripMenuItem.Click += new EventHandler(this.copyToolStripMenuItem_Click); this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; this.pasteToolStripMenuItem.Size = new Size(193, 22); this.pasteToolStripMenuItem.Text = "Paste"; this.pasteToolStripMenuItem.Click += new EventHandler(this.pasteToolStripMenuItem_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(190, 6); this.insertFunctionToolStripMenuItem.Name = "insertFunctionToolStripMenuItem"; this.insertFunctionToolStripMenuItem.Size = new Size(193, 22); this.insertFunctionToolStripMenuItem.Text = "Insert function"; this.insertTextureEntryIDToolStripMenuItem.Name = "insertTextureEntryIDToolStripMenuItem"; this.insertTextureEntryIDToolStripMenuItem.Size = new Size(193, 22); this.insertTextureEntryIDToolStripMenuItem.Text = "Insert texture entry ID"; this.insertCollectionEntryIDToolStripMenuItem.Name = "insertCollectionEntryIDToolStripMenuItem"; this.insertCollectionEntryIDToolStripMenuItem.Size = new Size(193, 22); this.insertCollectionEntryIDToolStripMenuItem.Text = "Insert collection entry ID"; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(528, 383); base.Controls.Add(dockContainer); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.leftSandBarDock); base.Controls.Add(this.rightSandBarDock); base.Controls.Add(this.bottomSandBarDock); base.Controls.Add(this.topSandBarDock); base.Name = "CodeEditor"; this.Text = "Far Cry 2 Script Editor"; dockContainer.ResumeLayout(false); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.topSandBarDock.ResumeLayout(false); this.contextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
internal void RegisterDockContainer(DockContainer container) { if (container is DocumentContainer && DocumentContainer != null) throw new InvalidOperationException("Only one DocumentContainer can exist in a SandDock layout."); if (!_containers.Contains(container)) _containers.Add(container); if (DockSystemContainer == null && container.Parent is ContainerControl && !container.IsFloating) DockSystemContainer = (ContainerControl)container.Parent; container.AllowDrop = SelectTabsOnDrag; if (container is DocumentContainer) { DocumentContainer = (DocumentContainer)container; DocumentContainer.BorderStyle = BorderStyle; DocumentContainer.DocumentOverflow = DocumentOverflow; DocumentContainer.IntegralClose = IntegralClose; } }
private static bool smethod_9(DockContainer container, SplitLayoutSystem splitLayout) { IEnumerator enumerator = splitLayout.LayoutSystems.GetEnumerator(); bool result; try { while (enumerator.MoveNext()) { LayoutSystemBase layoutSystemBase = (LayoutSystemBase)enumerator.Current; if (!(layoutSystemBase is SplitLayoutSystem)) { ControlLayoutSystem controlLayoutSystem = (ControlLayoutSystem)layoutSystemBase; if (!controlLayoutSystem.Collapsed && container.Controls.Contains(controlLayoutSystem.SelectedControl) && controlLayoutSystem.SelectedControl.Visible) { if (controlLayoutSystem.SelectedControl.Enabled) { container.ActiveControl = controlLayoutSystem.SelectedControl; result = true; return result; } } } else if (LayoutUtilities.smethod_9(container, (SplitLayoutSystem)layoutSystemBase)) { result = true; return result; } } return false; } finally { IDisposable disposable = enumerator as IDisposable; if (disposable != null) { disposable.Dispose(); } } }
internal static int smethod_12(DockContainer dockContainer_0) { int num = dockContainer_0.AllowResize ? 4 : 0; return num + smethod_13(dockContainer_0.LayoutSystem, dockContainer_0.Boolean_1 ? Orientation.Vertical : Orientation.Horizontal) * 5; }
internal static ControlLayoutSystem[] smethod_3(DockContainer container) => container.layoutSystems.OfType<ControlLayoutSystem>().ToArray();
internal static DockSituation GetDockSituation(DockContainer container) { if (container == null) return DockSituation.None; if (container.IsFloating) return DockSituation.Floating; return container.Dock == DockStyle.Fill ? DockSituation.Document : DockSituation.Docked; }
public static ControlLayoutSystem FindControlLayoutSystem(DockContainer container) => container.layoutSystems.OfType<ControlLayoutSystem>().FirstOrDefault();
internal static Struct0 smethod_15(DockContainer dockContainer_0, int[] int_1) { SplitLayoutSystem splitLayoutSystem = dockContainer_0.LayoutSystem; int i = 0; while (i < int_1.Length) { int num = int_1[i]; Struct0 result; if (num < splitLayoutSystem.LayoutSystems.Count) { SplitLayoutSystem splitLayoutSystem2 = splitLayoutSystem.LayoutSystems[num] as SplitLayoutSystem; if (splitLayoutSystem2 != null) { splitLayoutSystem = splitLayoutSystem2; i++; continue; } result = new Struct0(splitLayoutSystem, num); } else { result = new Struct0(splitLayoutSystem, splitLayoutSystem.LayoutSystems.Count); } return result; } return new Struct0(dockContainer_0.LayoutSystem, 0); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.menuBarItem1 = new TD.SandBar.MenuBarItem(); this.menuBarItem2 = new TD.SandBar.MenuBarItem(); this.menuBarItem3 = new TD.SandBar.MenuBarItem(); this.menuBarItem4 = new TD.SandBar.MenuBarItem(); this.menuBarItem5 = new TD.SandBar.MenuBarItem(); this.sandDockManager = new TD.SandDock.SandDockManager(); this.leftSandDock = new TD.SandDock.DockContainer(); this.rightSandDock = new TD.SandDock.DockContainer(); this.dockElementInsert = new TD.SandDock.DockableWindow(); this.elementInsertPanel = new XEditNet.Widgets.ElementInsertPanel(); this.dockElementChange = new TD.SandDock.DockableWindow(); this.elementChangePanel = new XEditNet.Widgets.ElementChangePanel(); this.dockAttributes = new TD.SandDock.DockableWindow(); this.attributeChangePanel = new XEditNet.Widgets.AttributeChangePanel(); this.bottomSandDock = new TD.SandDock.DockContainer(); this.topSandDock = new TD.SandDock.DockContainer(); this.menuBar1 = new TD.SandBar.MenuBar(); this.menuBarItem6 = new TD.SandBar.MenuBarItem(); this.menuFileSave = new TD.SandBar.MenuButtonItem(); this.menuButtonItem1 = new TD.SandBar.MenuButtonItem(); this.menuBarItem7 = new TD.SandBar.MenuBarItem(); this.menuButtonItem2 = new TD.SandBar.MenuButtonItem(); this.menuBarItem8 = new TD.SandBar.MenuBarItem(); this.menuButtonItem3 = new TD.SandBar.MenuButtonItem(); this.toolBar1 = new TD.SandBar.ToolBar(); this.toolBar2 = new TD.SandBar.ToolBar(); this.buttonItem1 = new TD.SandBar.ButtonItem(); this.quickFixBar = new TD.SandBar.ContainerBar(); this.containerBarClientPanel1 = new TD.SandBar.ContainerBarClientPanel(); this.quickFixPanel = new XEditNet.Widgets.QuickFixPanel(); this.quickFixImageList = new System.Windows.Forms.ImageList(this.components); this.quickFixPreceeding = new TD.SandBar.ButtonItem(); this.quickFixFollowing = new TD.SandBar.ButtonItem(); this.commandImageList = new System.Windows.Forms.ImageList(this.components); this.rightSandDock.SuspendLayout(); this.dockElementInsert.SuspendLayout(); this.dockElementChange.SuspendLayout(); this.dockAttributes.SuspendLayout(); this.quickFixBar.SuspendLayout(); this.containerBarClientPanel1.SuspendLayout(); this.SuspendLayout(); // // menuBarItem1 // this.menuBarItem1.Text = "&File"; // // menuBarItem2 // this.menuBarItem2.Text = "&Edit"; // // menuBarItem3 // this.menuBarItem3.Text = "&View"; // // menuBarItem4 // this.menuBarItem4.MdiWindowList = true; this.menuBarItem4.Text = "&Window"; // // menuBarItem5 // this.menuBarItem5.Text = "&Help"; // // sandDockManager // this.sandDockManager.OwnerForm = this; this.sandDockManager.Renderer = new TD.SandDock.Rendering.Office2003Renderer(); // // leftSandDock // this.leftSandDock.Dock = System.Windows.Forms.DockStyle.Left; this.leftSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.leftSandDock.Location = new System.Drawing.Point(0, 22); this.leftSandDock.Manager = this.sandDockManager; this.leftSandDock.Name = "leftSandDock"; this.leftSandDock.Size = new System.Drawing.Size(0, 480); this.leftSandDock.TabIndex = 0; // // rightSandDock // this.rightSandDock.Controls.Add(this.dockElementInsert); this.rightSandDock.Controls.Add(this.dockElementChange); this.rightSandDock.Controls.Add(this.dockAttributes); this.rightSandDock.Dock = System.Windows.Forms.DockStyle.Right; this.rightSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400, System.Windows.Forms.Orientation.Horizontal, new TD.SandDock.LayoutSystemBase[] { new TD.SandDock.ControlLayoutSystem(212, 238, new TD.SandDock.DockableWindow[] { this.dockElementInsert, this.dockElementChange}, this.dockElementInsert), new TD.SandDock.ControlLayoutSystem(212, 238, new TD.SandDock.DockableWindow[] { this.dockAttributes}, this.dockAttributes)}); this.rightSandDock.Location = new System.Drawing.Point(600, 22); this.rightSandDock.Manager = this.sandDockManager; this.rightSandDock.Name = "rightSandDock"; this.rightSandDock.Size = new System.Drawing.Size(216, 480); this.rightSandDock.TabIndex = 1; // // dockElementInsert // this.dockElementInsert.Controls.Add(this.elementInsertPanel); this.dockElementInsert.Guid = new System.Guid("63fe64f8-5444-45cb-b17d-17f8baf0c91d"); this.dockElementInsert.Location = new System.Drawing.Point(4, 25); this.dockElementInsert.Name = "dockElementInsert"; this.dockElementInsert.Size = new System.Drawing.Size(212, 190); this.dockElementInsert.TabIndex = 1; this.dockElementInsert.Text = "Insert"; // // elementInsertPanel // this.elementInsertPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.elementInsertPanel.Location = new System.Drawing.Point(0, 0); this.elementInsertPanel.Name = "elementInsertPanel"; this.elementInsertPanel.Size = new System.Drawing.Size(212, 190); this.elementInsertPanel.TabIndex = 0; // // dockElementChange // this.dockElementChange.Controls.Add(this.elementChangePanel); this.dockElementChange.Guid = new System.Guid("cb2f6fbf-41de-4588-a08b-f4f00d505fa7"); this.dockElementChange.Location = new System.Drawing.Point(4, 25); this.dockElementChange.Name = "dockElementChange"; this.dockElementChange.Size = new System.Drawing.Size(212, 190); this.dockElementChange.TabIndex = 1; this.dockElementChange.Text = "Change"; // // elementChangePanel // this.elementChangePanel.Dock = System.Windows.Forms.DockStyle.Fill; this.elementChangePanel.Location = new System.Drawing.Point(0, 0); this.elementChangePanel.Name = "elementChangePanel"; this.elementChangePanel.Size = new System.Drawing.Size(212, 190); this.elementChangePanel.TabIndex = 0; // // dockAttributes // this.dockAttributes.Controls.Add(this.attributeChangePanel); this.dockAttributes.Guid = new System.Guid("7a4f064f-d569-4ab2-8133-ca0b6b8c4151"); this.dockAttributes.Location = new System.Drawing.Point(4, 267); this.dockAttributes.Name = "dockAttributes"; this.dockAttributes.Size = new System.Drawing.Size(212, 190); this.dockAttributes.TabIndex = 2; this.dockAttributes.Text = "Attributes"; // // attributeChangePanel // this.attributeChangePanel.Dock = System.Windows.Forms.DockStyle.Fill; this.attributeChangePanel.Location = new System.Drawing.Point(0, 0); this.attributeChangePanel.Name = "attributeChangePanel"; this.attributeChangePanel.Size = new System.Drawing.Size(212, 190); this.attributeChangePanel.TabIndex = 0; // // bottomSandDock // this.bottomSandDock.Dock = System.Windows.Forms.DockStyle.Bottom; this.bottomSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.bottomSandDock.Location = new System.Drawing.Point(0, 502); this.bottomSandDock.Manager = this.sandDockManager; this.bottomSandDock.Name = "bottomSandDock"; this.bottomSandDock.Size = new System.Drawing.Size(816, 0); this.bottomSandDock.TabIndex = 2; // // topSandDock // this.topSandDock.Dock = System.Windows.Forms.DockStyle.Top; this.topSandDock.LayoutSystem = new TD.SandDock.SplitLayoutSystem(250, 400); this.topSandDock.Location = new System.Drawing.Point(0, 22); this.topSandDock.Manager = this.sandDockManager; this.topSandDock.Name = "topSandDock"; this.topSandDock.Size = new System.Drawing.Size(816, 0); this.topSandDock.TabIndex = 3; // // menuBar1 // this.menuBar1.AllowMerge = true; this.menuBar1.Guid = new System.Guid("dc0a091b-fb9a-4a33-8bf0-a9a24af4064c"); this.menuBar1.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuBarItem6, this.menuBarItem7, this.menuBarItem8}); this.menuBar1.Location = new System.Drawing.Point(232, 22); this.menuBar1.Name = "menuBar1"; this.menuBar1.OwnerForm = this; this.menuBar1.Size = new System.Drawing.Size(368, 22); this.menuBar1.TabIndex = 0; this.menuBar1.Text = "menuBar1"; this.menuBar1.Visible = false; // // menuBarItem6 // this.menuBarItem6.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuFileSave, this.menuButtonItem1}); this.menuBarItem6.Text = "&File"; // // menuFileSave // this.menuFileSave.BeginGroup = true; this.menuFileSave.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.menuFileSave.MergeIndex = 2; this.menuFileSave.Text = "Save"; this.menuFileSave.Activate += new System.EventHandler(this.SaveFile); // // menuButtonItem1 // this.menuButtonItem1.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.menuButtonItem1.MergeIndex = 3; this.menuButtonItem1.Text = "&Close"; this.menuButtonItem1.Activate += new System.EventHandler(this.CloseFile); // // menuBarItem7 // this.menuBarItem7.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuButtonItem2}); this.menuBarItem7.Text = "&Edit"; // // menuButtonItem2 // this.menuButtonItem2.MergeAction = TD.SandBar.ItemMergeAction.Add; this.menuButtonItem2.MergeIndex = 0; this.menuButtonItem2.Text = "&Test"; // // menuBarItem8 // this.menuBarItem8.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.menuButtonItem3}); this.menuBarItem8.Text = "&View"; // // menuButtonItem3 // this.menuButtonItem3.MergeAction = TD.SandBar.ItemMergeAction.Add; this.menuButtonItem3.MergeIndex = 0; this.menuButtonItem3.Text = "&ViewTest"; // // toolBar1 // this.toolBar1.DockLine = 1; this.toolBar1.Guid = new System.Guid("88196026-7bd7-4954-85b7-34999dcd37cd"); this.toolBar1.Location = new System.Drawing.Point(2, 24); this.toolBar1.Name = "toolBar1"; this.toolBar1.Size = new System.Drawing.Size(24, 18); this.toolBar1.TabIndex = 1; this.toolBar1.Text = "toolBar1"; // // toolBar2 // this.toolBar2.Guid = new System.Guid("458f1dcc-720e-4fb6-b794-41d5a9f186e2"); this.toolBar2.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.buttonItem1}); this.toolBar2.Location = new System.Drawing.Point(0, 0); this.toolBar2.Name = "toolBar2"; this.toolBar2.Size = new System.Drawing.Size(816, 22); this.toolBar2.TabIndex = 4; this.toolBar2.Text = ""; this.toolBar2.Visible = false; // // buttonItem1 // this.buttonItem1.MergeAction = TD.SandBar.ItemMergeAction.Insert; this.buttonItem1.MergeIndex = 2; this.buttonItem1.Text = "xxxx"; // // quickFixBar // this.quickFixBar.AddRemoveButtonsVisible = false; this.quickFixBar.AllowHorizontalDock = false; this.quickFixBar.Controls.Add(this.containerBarClientPanel1); this.quickFixBar.Dock = System.Windows.Forms.DockStyle.Left; this.quickFixBar.Flow = TD.SandBar.ToolBarLayout.Horizontal; this.quickFixBar.Guid = new System.Guid("0e1e9ede-d2fe-4307-a683-d2e3ea4f4e5f"); this.quickFixBar.ImageList = this.quickFixImageList; this.quickFixBar.Items.AddRange(new TD.SandBar.ToolbarItemBase[] { this.quickFixPreceeding, this.quickFixFollowing}); this.quickFixBar.Location = new System.Drawing.Point(0, 22); this.quickFixBar.Name = "quickFixBar"; this.quickFixBar.Size = new System.Drawing.Size(232, 480); this.quickFixBar.TabIndex = 5; this.quickFixBar.Text = "Quick Fix"; // // containerBarClientPanel1 // this.containerBarClientPanel1.Controls.Add(this.quickFixPanel); this.containerBarClientPanel1.Location = new System.Drawing.Point(2, 45); this.containerBarClientPanel1.Name = "containerBarClientPanel1"; this.containerBarClientPanel1.Size = new System.Drawing.Size(228, 433); this.containerBarClientPanel1.TabIndex = 0; // // quickFixPanel // this.quickFixPanel.BackColor = System.Drawing.Color.Transparent; this.quickFixPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.quickFixPanel.Location = new System.Drawing.Point(0, 0); this.quickFixPanel.Name = "quickFixPanel"; this.quickFixPanel.Size = new System.Drawing.Size(228, 433); this.quickFixPanel.TabIndex = 0; this.quickFixPanel.FinishUpdate += new System.EventHandler(this.QuickFixUpdated); // // quickFixImageList // this.quickFixImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.quickFixImageList.ImageSize = new System.Drawing.Size(16, 16); this.quickFixImageList.TransparentColor = System.Drawing.Color.Transparent; // // quickFixPreceeding // this.quickFixPreceeding.ImageIndex = 0; this.quickFixPreceeding.Activate += new System.EventHandler(this.GotoPrecedingError); // // quickFixFollowing // this.quickFixFollowing.ImageIndex = 1; this.quickFixFollowing.Activate += new System.EventHandler(this.GotoFollowingError); // // commandImageList // this.commandImageList.ImageSize = new System.Drawing.Size(16, 16); this.commandImageList.TransparentColor = System.Drawing.Color.Transparent; // // XEditNetChildForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(816, 502); this.Controls.Add(this.menuBar1); this.Controls.Add(this.quickFixBar); this.Controls.Add(this.leftSandDock); this.Controls.Add(this.rightSandDock); this.Controls.Add(this.bottomSandDock); this.Controls.Add(this.topSandDock); this.Controls.Add(this.toolBar2); this.Name = "XEditNetChildForm"; this.Text = "XEditNetChildForm"; this.rightSandDock.ResumeLayout(false); this.dockElementInsert.ResumeLayout(false); this.dockElementChange.ResumeLayout(false); this.dockAttributes.ResumeLayout(false); this.quickFixBar.ResumeLayout(false); this.containerBarClientPanel1.ResumeLayout(false); this.ResumeLayout(false); }