Exemplo n.º 1
0
 public async Task Create()
 {
     IsWorking = true;
     try {
         var op = new AddVirtualEnvironmentOperation(
             _project,
             VirtualEnvPath,
             BaseInterpreter.Interpreter,
             WillCreateVirtualEnv,
             UseVEnv,
             WillInstallRequirementsTxt,
             OutputWindowRedirector.GetGeneral(_project.Site)
             );
         await op.Run();
     } catch (OperationCanceledException) {
     } finally {
         IsWorking = false;
         RefreshCanCreateVirtualEnv(VirtualEnvPath);
     }
 }
Exemplo n.º 2
0
 public async Task Create() {
     IsWorking = true;
     try {
         var op = new AddVirtualEnvironmentOperation(
             _project,
             VirtualEnvPath,
             BaseInterpreter.Interpreter,
             WillCreateVirtualEnv,
             UseVEnv,
             WillInstallRequirementsTxt,
             OutputWindowRedirector.GetGeneral(_project.Site)
         );
         await op.Run();
     } catch (OperationCanceledException) {
     } finally {
         IsWorking = false;
         RefreshCanCreateVirtualEnv(VirtualEnvPath);
     }
 }