public void EnableUpdates() { var creator = new CommandLineProcessCreator(); var enableUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("EnableUpdate")); enableUpdateService.Start(); var startUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("StartUpdate")); startUpdateService.Start(); var enableOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("EnableOrchestrator")); enableOrchestratorService.Start(); var startOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("StartOrchestrator")); startOrchestratorService.Start(); }
public void UpdateServiceStateLabel() { var updateService = new CommandLineUpdateService(); var serviceState = updateService.GetServiceState(StaticConfigurationManager.GetValue("UpdateServiceName")); ServiceStatusLabel.Text = Enum.GetName(typeof(CommandLineUpdateService.StartupState), serviceState); if (serviceState == CommandLineUpdateService.StartupState.Disabled) { ServiceStatusIcon.Kind = PackIconKind.Alert; ServiceStatusIcon.Foreground = ConvertFromHexToBrush("#AD1457"); } else { ServiceStatusIcon.Kind = PackIconKind.CheckboxMarkedCircle; ServiceStatusIcon.Foreground = ConvertFromHexToBrush("#00BCD4"); } }
public void DisableUpdates() { var creator = new CommandLineProcessCreator(); var stopUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("StopUpdate")); stopUpdateService.Start(); var disableUpdateService = creator.CreateService(StaticConfigurationManager.GetValue("DisableUpdate")); disableUpdateService.Start(); var stopOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("StopOrchestrator")); stopOrchestratorService.Start(); var disableOrchestratorService = creator.CreateService(StaticConfigurationManager.GetValue("DisableOrchestrator")); disableOrchestratorService.Start(); var setManualTrustedInstaller = creator.CreateService(StaticConfigurationManager.GetValue("EnableTrustedInstaller")); setManualTrustedInstaller.Start(); }
private void LinkedinButton_Click(object sender, RoutedEventArgs e) { Process.Start(StaticConfigurationManager.GetValue("LinkedinProfilePage")); }
private void GitHubButton_Click(object sender, RoutedEventArgs e) { Process.Start(StaticConfigurationManager.GetValue("GithubPage")); }