private void Email_Content_Template_Load(object sender, EventArgs e)
        {
            conf = UDT.AbsenceConfiguration.GetEmailContentTemplate();
            proxy.Decorate(this.webBrowser1, conf.Content);

            /*
            webBrowser1.Navigate("about:blank");
            Application.DoEvents();
            webBrowser1.Document.OpenNew(false).Write("<!doctype foo><html><body>" + conf.Content + "</body></html>");

            foreach (HtmlElement el in webBrowser1.Document.All)
            {

                el.SetAttribute("unselectable", "on");
                el.SetAttribute("contenteditable", "false");
            }
            try
            {
                //webBrowser1.Document.DomDocument.
                webBrowser1.Document.Body.SetAttribute("width", this.Width.ToString() + "px");
                webBrowser1.Document.Body.SetAttribute("height", "100%");
                webBrowser1.Document.Body.SetAttribute("contenteditable", "true");
                //webBrowser1.Document.DomDocument.GetType().GetProperty("designMode").SetValue(webBrowser1.Document.DomDocument, "On", null);
                webBrowser1.IsWebBrowserContextMenuEnabled = false;
            }
            catch (Exception ex)
            {
                Util.ShowMsg("此功能只能在 Win 7 以上的作業系統執行,請確定您的作業系統是 Win 7 以上。 \n" + ex.Message, "錯誤!");
                this.btnSave.Enabled = false;
            }
             * */
        }
 private void Email_Sender_Load(object sender, EventArgs e)
 {
     conf = UDT.AbsenceConfiguration.GetEmailSenderInfo();
     this.textBoxX1.Text = conf.Content;
 }