public UpdateService() { var loc = new LocalServiceLocator(); CoApp = loc.CoAppService; UpdateSettings = loc.UpdateSettingsService; AllPossibleProducts = new Dictionary<Product, bool>(); }
public QuietSupport() { var loc = new LocalServiceLocator(); Update = loc.UpdateService; UpdateSettings = loc.UpdateSettingsService; }
public UpdateSettingsViewModel() { Title = "Update"; Loaded += OnLoaded; Save = new RelayCommand(ExecuteSave); var loc = new LocalServiceLocator(); UpdateService = loc.UpdateSettingsService; CoApp = loc.CoAppService; ElevateSave = new RelayCommand(ExecuteElevateSave); }
public PrimaryViewModel() { Title = "CoApp Update"; MessengerInstance.Register<InstallationFailedMessage>(this, HandleInstallFailed); MessengerInstance.Register<InstallationFinishedMessage>(this, HandleInstallFinished); MessengerInstance.Register<SelectedProductsChangedMessage>(this, HandleChanged); Loaded += OnLoaded; var loc = new LocalServiceLocator(); UpdateService = loc.UpdateService; PolicyService = loc.PolicyService; NavigationService = loc.NavigationService; AutomationService = loc.AutomationService; UpdateSettingsService = loc.UpdateSettingsService; SelectUpdates = new RelayCommand(() => NavigationService.GoTo(ViewModelLocator.SelectUpdatesViewModelStatic)); Install = new RelayCommand(() => NavigationService.GoTo(ViewModelLocator.InstallingViewModelStatic, false)); CheckForUpdates = new RelayCommand(() => NavigationService.GoTo(ViewModelLocator.UpdatingViewModelStatic)); /* FeedWarning = new RelayCommand(() => MessengerInstance.Send(new MetroDialogBoxMessage { Title = "The Following Feeds Could Not Be Reached", Content = Warnings, Buttons = new ObservableCollection <ButtonDescription> { new ButtonDescription { Title = "Cancel", IsCancel = true } } }));*/ }