private void OpenFile(string filePath, DockState dockState) { // Ensure this file isn't already open if (!IsOpen(filePath)) { LispEditor editor = FileCommands.OpenFile(filePath); //Open the file if (editor != null) { SetupEditor(editor); ShowEditor(editor, dockState); } } }