private void SettingForm_Load(object sender, EventArgs e)
{
// フォームの表示準備中
loadFromFlag = true;
// アカウント情報を表示する
if (AccountInfo.mailAddress != null && AccountInfo.userName != null && AccountInfo.passWord != null && AccountInfo.smtpServer != null && AccountInfo.popServer != null) {
textFromName.Text = AccountInfo.fromName;
textUserAddress.Text = AccountInfo.mailAddress;
textUserName.Text = AccountInfo.userName;
textPassword.Text = AccountInfo.passWord;
textSmtpServer.Text = AccountInfo.smtpServer;
textSmtpPortNo.Text = AccountInfo.smtpPortNumber.ToString();
textPopServer.Text = AccountInfo.popServer;
textPopPortNo.Text = AccountInfo.popPortNumber.ToString();
checkApop.Checked = AccountInfo.apopFlag;
checkDeleteMail.Checked = AccountInfo.deleteMail;
checkPopBeforeSmtp.Checked = AccountInfo.popBeforeSMTP;
checkPop3OverSSL.Checked = AccountInfo.popOverSSL;
checkSmtpAuth.Checked = AccountInfo.smtpAuth;
checkAutoGetMail.Checked = AccountInfo.autoMailFlag;
checkMinimizeTaskTray.Checked = AccountInfo.minimizeTaskTray;
// 旧バージョンのコンフィグ用対策
if (AccountInfo.getMailInterval != 0) {
updownGetmailInterval.Value = AccountInfo.getMailInterval;
}
else {
updownGetmailInterval.Value = 10;
}
checkSoundPlay.Checked = AccountInfo.popSoundFlag;
textSoundFileName.Text = AccountInfo.popSoundName;
checkBrowser.Checked = AccountInfo.bodyIEShow;
updownGetmailInterval.Enabled = checkAutoGetMail.Checked;
labelIntervalRecieve.Enabled = checkAutoGetMail.Checked;
textSoundFileName.Enabled = checkSoundPlay.Checked;
buttonBrowse.Enabled = checkSoundPlay.Checked;
}
// フォーム読み込み完了
loadFromFlag = false;
}