public void Repopulate() { if (_XenModelObject == null) { return; } try { _PerfmonOptions = PerfmonOptionsDefinition.GetPerfmonOptionsDefinitions(_XenModelObject); if (_PerfmonOptions != null) { EmailNotificationCheckBox.Checked = true; EmailAddressTextBox.Text = _PerfmonOptions.MailDestination; SmtpServerAddrTextBox.Text = PerfmonOptionsDefinition.GetSmtpServerAddress(_PerfmonOptions.MailHub); SmtpServerPortTextBox.Text = PerfmonOptionsDefinition.GetSmtpPort(_PerfmonOptions.MailHub); } } catch { } } // Repopulate()
public void Repopulate() { if (_XenModelObject == null) { return; } try { MailLanguageLabel.Visible = MailLanguageComboBox.Visible = _bSupportMailLanguage; _PerfmonOptions = PerfmonOptionsDefinition.GetPerfmonOptionsDefinitions(_XenModelObject); if (_PerfmonOptions != null) { EmailNotificationCheckBox.Checked = true; EmailAddressTextBox.Text = _PerfmonOptions.MailDestination; SmtpServerAddrTextBox.Text = PerfmonOptionsDefinition.GetSmtpServerAddress(_PerfmonOptions.MailHub); SmtpServerPortTextBox.Text = PerfmonOptionsDefinition.GetSmtpPort(_PerfmonOptions.MailHub); SetMailLanguageComboBoxValue(_PerfmonOptions.MailLanguageCode); if (_bSupportMailLanguage) // Save original MailLanguageCode for change detection { _OrigMailLanguageCode = _PerfmonOptions.MailLanguageCode; } else { _OrigMailLanguageCode = null; } } else { SetMailLanguageComboBoxValue(null); _OrigMailLanguageCode = null; } } catch { } } // Repopulate()