internal static ControlLayoutSystem smethod_4(SandDockManager sandDockManager_0, DockSituation dockSituation_0, DockingState dockingState0) { switch (dockSituation_0) { case DockSituation.None: throw new InvalidOperationException(); case DockSituation.Docked: { DockContainer[] dockContainers = sandDockManager_0.GetDockContainers(); for (int i = 0; i < dockContainers.Length; i++) { DockContainer dockContainer_ = dockContainers[i]; if (LayoutUtilities.GetDockSituation(dockContainer_) == dockSituation_0) { ControlLayoutSystem[] array = LayoutUtilities.smethod_3(dockContainer_); for (int j = 0; j < array.Length; j++) { ControlLayoutSystem controlLayoutSystem = array[j]; if (controlLayoutSystem.Guid == dockingState0.Guid) { ControlLayoutSystem result = controlLayoutSystem; return result; } } } } goto IL_133; } case DockSituation.Document: if (sandDockManager_0.DocumentContainer != null) { ControlLayoutSystem[] array2 = LayoutUtilities.smethod_3(sandDockManager_0.DocumentContainer); for (int k = 0; k < array2.Length; k++) { ControlLayoutSystem controlLayoutSystem2 = array2[k]; if (controlLayoutSystem2.Guid == dockingState0.Guid) { ControlLayoutSystem result = controlLayoutSystem2; return result; } } goto IL_133; } goto IL_133; case DockSituation.Floating: { DockContainer[] dockContainers2 = sandDockManager_0.GetDockContainers(); foreach (DockContainer dockContainer_2 in dockContainers2) { if (GetDockSituation(dockContainer_2) == dockSituation_0) { foreach (var controlLayoutSystem3 in smethod_3(dockContainer_2)) { if (controlLayoutSystem3.Guid == dockingState0.Guid) { ControlLayoutSystem result = controlLayoutSystem3; return result; } } } } goto IL_133; } } throw new InvalidOperationException(); IL_133: return null; }
private static void smethod_1(DockControl dockControl_0, XmlNode xmlNode_0, DockingState dockingState0, string string_0) { TypeConverter converter = TypeDescriptor.GetConverter(typeof(int)); if (xmlNode_0.Attributes[string_0 + "WorkingSize"] != null) { dockingState0.Size = SandDockManager.ConvertStringToSizeF(xmlNode_0.Attributes[string_0 + "WorkingSize"].Value); } if (xmlNode_0.Attributes[string_0 + "WindowGroupGuid"] != null) { dockingState0.Guid = new Guid(xmlNode_0.Attributes[string_0 + "WindowGroupGuid"].Value); } if (xmlNode_0.Attributes[string_0 + "IndexInWindowGroup"] != null) { dockingState0.Int32_1 = (int)converter.ConvertFromString(null, CultureInfo.InvariantCulture, xmlNode_0.Attributes[string_0 + "IndexInWindowGroup"].Value); } if (xmlNode_0.Attributes[string_0 + "SplitPath"] != null) { dockingState0.Int32_0 = Class22.smethod_2(xmlNode_0.Attributes[string_0 + "SplitPath"].Value); } }
private static void smethod_4(DockControl dockControl_0, XmlTextWriter xmlTextWriter_0, DockingState dockingState0, string string_0) { TypeConverter converter = TypeDescriptor.GetConverter(typeof(int)); xmlTextWriter_0.WriteAttributeString(string_0 + "WorkingSize", SandDockManager.ConvertSizeFToString(dockingState0.Size)); xmlTextWriter_0.WriteAttributeString(string_0 + "WindowGroupGuid", dockingState0.Guid.ToString()); xmlTextWriter_0.WriteAttributeString(string_0 + "IndexInWindowGroup", converter.ConvertToString(null, CultureInfo.InvariantCulture, dockingState0.Int32_1)); xmlTextWriter_0.WriteAttributeString(string_0 + "SplitPath", smethod_5(dockingState0.Int32_0)); }
private void UpdateDockingState(DockingState state) { if (LayoutSystem == null) return; state.Guid = LayoutSystem.Guid; state.Int32_1 = LayoutSystem.Controls.IndexOf(this); state.Size = LayoutSystem.WorkingSize; state.Int32_0 = LayoutUtilities.smethod_5(LayoutSystem); }