Exemple #1
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            var emailSettings = new EmailSettings
            {
                AttachmentName = txtAttachmentName.Text
            };

            emailSettingsContainer.EmailSettings = emailSettings;
            userConfigManager.Config.EmailSettings = cbRememberSettings.Checked ? emailSettings : null;
            userConfigManager.Save();

            Close();
        }
Exemple #2
0
 private void UpdateValues(EmailSettings emailSettings)
 {
     txtAttachmentName.Text = emailSettings.AttachmentName;
 }