private bool OnSubSelected(GUIComponent component, object obj)
        {
            if (subPreviewContainer == null)
            {
                return(false);
            }

            subPreviewContainer.ClearChildren();

            Submarine sub = obj as Submarine;

            if (sub == null)
            {
                return(true);
            }

            sub.CreatePreviewWindow(subPreviewContainer);
            return(true);
        }