Example #1
0
 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;
 }
Example #2
0
 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);
 }