Пример #1
0
 public static InstallPythonPackageView ShowDialog(
     IServiceProvider serviceProvider,
     IPythonInterpreterFactory factory,
     IInterpreterOptionsService service
 ) {
     var wnd = new InstallPythonPackage(serviceProvider, factory, service);
     if (wnd.ShowModal() ?? false) {
         return wnd._view;
     } else {
         return null;
     }
 }
Пример #2
0
        public static InstallPythonPackageView ShowDialog(
            IServiceProvider serviceProvider,
            IPythonInterpreterFactory factory,
            IInterpreterOptionsService service
            )
        {
            var wnd = new InstallPythonPackage(serviceProvider, factory, service);

            if (wnd.ShowModal() ?? false)
            {
                return(wnd._view);
            }
            else
            {
                return(null);
            }
        }