private EditorType SelectEditor <EditorType>() where EditorType : Editor { var editorIndex = Editors.FindIndex((e) => e.GetType() == typeof(EditorType)); TabStrip.SelectedTab = editorIndex; return(Editors[editorIndex] as EditorType); }
private int GetEditor(Type editorType) => Editors.FindIndex((e) => e.GetType() == editorType);