AkaneMail.SettingForm.buttonOK_Click C# (CSharp) Method

buttonOK_Click() private method

private buttonOK_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void buttonOK_Click(object sender, EventArgs e)
        {
            // アカウント情報を設定する
            AccountInfo.fromName = textFromName.Text;
            AccountInfo.mailAddress = textUserAddress.Text;
            AccountInfo.userName = textUserName.Text;
            AccountInfo.passWord = textPassword.Text;
            AccountInfo.smtpServer = textSmtpServer.Text;
            AccountInfo.smtpPortNumber = int.Parse(textSmtpPortNo.Text);
            AccountInfo.popServer = textPopServer.Text;
            AccountInfo.popPortNumber = int.Parse(textPopPortNo.Text);
            AccountInfo.apopFlag = checkApop.Checked;
            AccountInfo.deleteMail = checkDeleteMail.Checked;
            AccountInfo.popBeforeSMTP = checkPopBeforeSmtp.Checked;
            AccountInfo.popOverSSL = checkPop3OverSSL.Checked;
            AccountInfo.smtpAuth = checkSmtpAuth.Checked;
            AccountInfo.autoMailFlag = checkAutoGetMail.Checked;
            AccountInfo.getMailInterval = Int32.Parse(updownGetmailInterval.Value.ToString());
            AccountInfo.popSoundFlag = checkSoundPlay.Checked;
            AccountInfo.popSoundName = textSoundFileName.Text;
            AccountInfo.bodyIEShow = checkBrowser.Checked;
            AccountInfo.minimizeTaskTray = checkMinimizeTaskTray.Checked;

            this.Close();
        }