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); }
internal static void xa7513d57b4844d46(Control x43bec302f92080b9) { if (x43bec302f92080b9.Parent != null) { goto label_26; } else { goto label_29; } label_1: ((DockControl)x43bec302f92080b9).xadad18dc04073a00 = true; goto label_3; label_2: if (x43bec302f92080b9 is DockControl) { goto label_1; } label_3: try { IContainerControl containerControl = x43bec302f92080b9.Parent.GetContainerControl(); if (true) { goto label_16; } else { goto label_10; } label_4: if (true) { goto label_6; } label_5: if (containerControl != null) { goto label_18; } label_6: x43bec302f92080b9.Parent.Controls.Remove(x43bec302f92080b9); return; label_7: if (containerControl.ActiveControl == x43bec302f92080b9) { if (true) { containerControl.ActiveControl = (Control)null; goto label_4; } else { goto label_4; } } else { goto label_6; } label_10: DockContainer xd3311d815ca25f02; if (xd3311d815ca25f02.Manager.OwnerForm != null) { while (xd3311d815ca25f02.Manager.OwnerForm.IsMdiContainer) { LayoutUtilities.xf96eb78473d85a37(xd3311d815ca25f02, xd3311d815ca25f02.LayoutSystem); if (true) { goto label_6; } } goto label_7; } else { goto label_7; } label_14: if (xd3311d815ca25f02 != null && xd3311d815ca25f02.Manager != null) { if (false) { return; } goto label_10; } else { goto label_7; } label_16: if (false) { if (false) { if (true) { if (true) { goto label_7; } else { goto label_4; } } else { goto label_14; } } } else { goto label_5; } label_18: xd3311d815ca25f02 = containerControl as DockContainer; goto label_14; } finally { if (x43bec302f92080b9 is DockControl) { ((DockControl)x43bec302f92080b9).xadad18dc04073a00 = false; } } label_26: if (x43bec302f92080b9.ContainsFocus) { x43bec302f92080b9.Parent.Focus(); goto label_2; } label_27: if (false) { if (false) { return; } goto label_1; } else { goto label_2; } label_29: if (false) { goto label_27; } }