Esempio n. 1
0
        public static void InsertEmail(IHTMLDocument2 m_pDoc2)
        {
            InsertEmailCodeForm insertemail = new InsertEmailCodeForm();

            if (insertemail.ShowDialog() == DialogResult.OK)
            {
                AddToSelection(m_pDoc2, insertemail.InsertEmailHTML, "");;
            }
        }
Esempio n. 2
0
        private void openEmailBtn_Click(object sender, EventArgs e)
        {
            InsertEmailCodeForm insertemail = new InsertEmailCodeForm();

            if (insertemail.ShowDialog() == DialogResult.OK)
            {
                string addr   = insertemail.TextMailto;
                string sub    = insertemail.TextSubject;
                string urlstr = "";
                if (addr != "")
                {
                    urlstr += "mailto:" + addr;
                    if (sub != "")
                    {
                        urlstr += "?subject=" + sub;
                    }
                }
                picLinkPathTextBox.Text = urlstr;
            }
        }