Example #1
0
        private void ForWardAccept_Click(object sender, EventArgs e)
        {
            if (MailAddressList.Rows.Count == 0)
            {
                if (ClickedForward != null)
                {
                    ClickedForward(sender, e);
                }
                return;
            }
            DialogResult askX = MessageBox.Show("Forward mail to " + MailAddressList.Rows.Count + " mail address?",
                                                "FORWARD?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (askX == DialogResult.No)
            {
                return;
            }
            foreach (DataGridViewRow Row in MailAddressList.Rows)
            {
                ListMail.Add(Row.Cells[0].Value.ToString());
            }
            if (ClickedForward != null)
            {
                ClickedForward(sender, e);
            }
            MailAddress.Clear();
            MailAddressList.Rows.Clear();
        }
Example #2
0
 private void ForwardS_SizeChanged(object sender, EventArgs e)
 {
     MailAddress.Clear();
     MailAddressList.Rows.Clear();
 }