/// <summary>
        /// 增加收件人信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRecipients_Click(object sender, EventArgs e)
        {
            var _val = txtRecipients.Text.Trim();

            if (ValidHelper.IsEmailValid(_val))
            {
                lstRecipients.BeginUpdate();
                lstRecipients.Items.Add(_val);
                lstRecipients.EndUpdate();
                //MsgBox.Show($"对不起!收件人数量已达到最大设定值【{FMailMessage.MaxRecipientNum}】。");
            }
            else
            {
                MsgBox.Show(ValidError.IsEmailValid);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 增加收件人信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnRecipients_Click(object sender, EventArgs e)
        {
            var _val = txtRecipients.Text.Trim();

            if (ValidHelper.IsEmailValid(_val))
            {
                lstRecipients.BeginUpdate();
                lstRecipients.Items.Add(_val);
                lstRecipients.EndUpdate();
                //MessageBox.Show(string.Format("对不起!收件人数量已达到最大设定值【{0}】。", FMailMessage.MaxRecipientNum), "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show(ValidError.IsEmailValid, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }