public void ReCheck()
 {
     if (powerShellRunner.TrySetExecutionPolicyToUnrestricted())
     {
         eventAggregator.Publish <UserFixedExecutionPolicy>();
     }
 }
Exemple #2
0
 void RunStartupSequence()
 {
     if (!licenseAgreement.HasAgreedToLicense())
     {
         ActivateModel <LicenseAgreementViewModel>();
         return;
     }
     if (!powerShellRunner.TrySetExecutionPolicyToUnrestricted())
     {
         ActivateModel <GroupPollicyErrorViewModel>();
         return;
     }
     ActivateModel <SelectItemsViewModel>();
 }