public DockState GetDockContentState(Control control) { return(Panes.First(pane => pane.Controls[0] == control).DockState); }