public PolicyService() { var loc = new LocalServiceLocator(); CoApp = loc.CoAppService; CoApp.Elevated += CoAppOnElevated; UserService = loc.WindowsUserService; _policyTask = CoApp.Policies; }
public UpdateSettingsViewModel() { Title = "Update"; Loaded += OnLoaded; Save = new RelayCommand(ExecuteSave); var loc = new LocalServiceLocator(); UpdateService = loc.UpdateSettingsService; CoApp = loc.CoAppService; ElevateSave = new RelayCommand(ExecuteElevateSave); }