public static IEnumerable<IPythonInterpreterFactory> ShowDialog( PythonProjectNode project, IInterpreterOptionsService service) { using (var wnd = new AddInterpreter(project, service)) { if (wnd.ShowModal() ?? false) { return wnd._view.Interpreters.Where(iv => iv.IsSelected).Select(iv => iv.Interpreter); } } return null; }
public static IEnumerable <IPythonInterpreterFactory> ShowDialog( PythonProjectNode project, IInterpreterOptionsService service) { using (var wnd = new AddInterpreter(project, service)) { if (wnd.ShowModal() ?? false) { return(wnd._view.Interpreters.Where(iv => iv.IsSelected).Select(iv => iv.Interpreter)); } } return(null); }