internal static void ShowOptionPage(System.IServiceProvider serviceProvider, Type dialogPage, InterpreterConfiguration interpreter) { if (dialogPage == typeof(PythonInterpreterOptionsPage)) { PythonInterpreterOptionsPage.NextOptionsSelection = interpreter; } else if (dialogPage == typeof(PythonInteractiveOptionsPage)) { PythonInteractiveOptionsPage.NextOptionsSelection = interpreter; } else { throw new InvalidOperationException(); } serviceProvider.ShowOptionsPage(dialogPage); }