private void GetPasswordSettings() { GetSettingsMessage pswdsettingmsg = new GetSettingsMessage(Configuration.mMachineID, Configuration.operatorID, SettingsCategory.Security); try { pswdsettingmsg.Send(); } catch (Exception ex) { MessageForm.Show(ex.Message, Properties.Resources.securityCenter); throw ex; } SettingValue[] stationsettings = pswdsettingmsg.Settings; try { foreach (SettingValue setting in stationsettings) { Configuration.LoadSetting(setting); } } catch (Exception ex) { MessageForm.Show(ex.Message, Properties.Resources.securityCenter); throw ex; } }
/// <summary> /// Gets the settings from the server. /// </summary> private void GetSettings() { // FIX TA7892 ////////////////////////////////////////////// // Send message for license file settings. GetLicenseFileSettingsMessage licenseSettingMsg = new GetLicenseFileSettingsMessage(true); licenseSettingMsg.Send(); // Loop through each setting and parse the value. foreach (LicenseSettingValue setting in licenseSettingMsg.LicenseSettings) { Configuration.LoadSetting(setting); } // END TA7892 // Send message for global settings. GetSettingsMessage settingsMsg = new GetSettingsMessage(Configuration.mMachineID, Configuration.operatorID, SettingsCategory.GlobalSystemSettings); settingsMsg.Send(); // Loop through each setting and parse the value. SettingValue[] stationSettings = settingsMsg.Settings; foreach (SettingValue setting in stationSettings) { if (setting.Id == 182) { RaffleSettingDisplayText.valuerf = Convert.ToInt32(setting.Value); } Configuration.LoadSetting(setting); } }
/// <summary> /// Gets the settings from the server. /// </summary> private void GetWorkstationSettings() { // Send message for global settings. // Rally DE130 GetSettingsMessage settingsMsg = new GetSettingsMessage(Configuration.mMachineID, Configuration.operatorID, SettingsCategory.GlobalSystemSettings); try { settingsMsg.Send(); } catch (Exception ex) { MessageForm.Show(ex.Message, Properties.Resources.securityCenter); throw ex; } // Set the workstation id. //m_workstationId = settingsMsg.WorkstationId; // Loop through each setting and parse the value. SettingValue[] stationSettings = settingsMsg.Settings; try { foreach (SettingValue setting in stationSettings) { Configuration.LoadSetting(setting); } } catch (Exception ex) { MessageForm.Show(Properties.Resources.errorParse + ": " + ex.Message, Properties.Resources.securityCenter); throw ex; } }