示例#1
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     if (MailReceiver != null)
     {
         newEmailForm = new NewEmailForm(this);
         newEmailForm.StartPosition = FormStartPosition.Manual;
         newEmailForm.Location      = MousePosition;
         newEmailForm.Show();
     }
 }
        private void buttonForward_Click(object sender, EventArgs e)
        {
            var newEmailForm = new NewEmailForm(_parentForm);

            newEmailForm.LoadFromMailPreview("", "FWD: " + tbSubject.Text, tbBody.Text);
            newEmailForm.StartPosition = FormStartPosition.Manual;
            newEmailForm.Location      = this.Location;
            this.Close();
            newEmailForm.Show();
        }
        private void buttonReply_Click(object sender, EventArgs e)
        {
            var newEmailForm = new NewEmailForm(_parentForm);
            var body         = tbBody.Text;

            newEmailForm.LoadFromMailPreview(
                tbTo.Text, "Reply: " + tbSubject.Text, "---ORIGINAL MESSAGE----\n" + body + "---ORIGINAL MESSAGE----\n");

            newEmailForm.StartPosition = FormStartPosition.Manual;
            newEmailForm.Location      = this.Location;
            this.Close();
            newEmailForm.Show();
        }