Beispiel #1
0
        private void btnMailToList_Click(object sender, EventArgs e)
        {
            var mailSenderList = new MailSenderListForm();

            mailSenderList.SavedMailList += new EventHandler(SavedMailList);
            mailSenderList.ShowDialog();
        }
Beispiel #2
0
        private void SavedMailList(object sender, EventArgs e)
        {
            MailSenderListForm fc = sender as MailSenderListForm;

            if (fc != null)
            {
                this.cmbBoxMailTo.Items.Clear();
                MailSendList = fc.mailListStudents;
                this.cmbBoxMailTo.Items.AddRange(fc.mailListStudents.ToArray());
            }
        }