private void SyncInstallationBindings() { InstallServiceCommand = new WrappedCommand(new InstallServiceCommand(Path, Configurations.SERVICE_NAME)); UninstallServiceCommand = new WrappedCommand(new UninstallServiceCommand(Path, Configurations.SERVICE_NAME)); NetworkCredential credential = CredentialManager.GetCredentials(Configurations.SERVICE_NAME); if (credential is object) { Username = credential.UserName; PasswordBox.Password = credential.Password; } if (File.Exists(Path)) { Configuration configuration = ConfigurationManager.OpenExeConfiguration(Path); CasEndpoint = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.CAS_API_ENDPOINT, defaultCasEndpoint); ServiceEndpoint = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.OPTOPLUS_API_ENDPOINT, defaultServiceEndpoint); InputPath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.INPUT_PATH, ""); OutputPath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.OUTPUT_PATH, ""); ProcessedPath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.PROCESSED_PATH, ""); ErrorPath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.ERROR_PATH, ""); SurfacePath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.SURFACE_PATH, ""); AnalysisPath = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.ANALYSIS_PATH, ""); OutputFormat = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.OUTPUT_FORMAT, ""); Gax = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.GAX, ""); LapGax = SettingUtils.ReadSetting(configuration.AppSettings.Settings, Configurations.LAPGAX, ""); } }