private void _bSave_Click(object sender, EventArgs e)
        {
            try
            {
                // Imap4
                _config.Imap4UserName     = _tbImap4Username.Text;
                _config.Imap4Password     = _tbImap4Password.Text;
                _config.Imap4Server       = _tbImap4Server.Text;
                _config.TransperfectEmail = _tbTransperfectEmail.Text;
                _config.TransperfectPass  = _tbTransperfectPass.Text;
                _config.Save();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Configuration", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            finally
            {
                this.Close();
            }
        }
示例#2
0
        private void _bSave_Click(object sender, EventArgs e)
        {
            try
            {
                _config.Delay2Mess1Acc          = Convert.ToInt32(_tbDelay2Mess1Acc.Value);
                _config.Delay2Mess2Acc          = Convert.ToInt32(_tbDelay2Mess2Acc.Value);
                _config.PauseAt                 = Convert.ToInt32(_tbPauseAt.Value);
                _config.PauseTime               = Convert.ToInt32(_tbPauseTime.Value);
                _config.MakeFriendWithStrangers = _tbMakeFriendWithStrangers.Checked;
                _config.LogWhenSuccessful       = _tbLogWhenSuccessful.Checked;

                _config.Save();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Configuration", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            finally
            {
                this.Close();
            }
        }