예제 #1
0
        public PolicyService()
        {
            var loc = new LocalServiceLocator();
            CoApp = loc.CoAppService;
            CoApp.Elevated += CoAppOnElevated;

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