private void _btnSettingReceiver_Click(Object sender, EventArgs e)
        {
            if (!this._lbSendAttachments.DrawReceiver)
            {
                return;
            }
            var attach = this._lbSendAttachments.SelectedEmailAttachmentInfo;

            if (attach == null)
            {
                return;
            }
            EmailReceiverForm form = new EmailReceiverForm();

            form.EnableReceiverEdit(false);
            var result = form.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }

            var receiver = form.SelectedItem;

            if (receiver == null)
            {
                return;
            }
            attach.ReceiverEmail = receiver.ReceiverEmailAddress;
            attach.ReceiverName  = receiver.ReceiverName;
            this._lbSendAttachments.RefreshItemDraw(this._lbSendAttachments.SelectedIndex);
        }
Esempio n. 2
0
        private void _btnSetReceivers_Click(object sender, EventArgs e)
        {
            EmailReceiverForm form = new EmailReceiverForm();

            form.ShowDialog();
        }