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