Example #1
0
        private EditorType SelectEditor <EditorType>() where EditorType : Editor
        {
            var editorIndex = Editors.FindIndex((e) => e.GetType() == typeof(EditorType));

            TabStrip.SelectedTab = editorIndex;
            return(Editors[editorIndex] as EditorType);
        }
Example #2
0
 private int GetEditor(Type editorType) => Editors.FindIndex((e) => e.GetType() == editorType);