void DesignWebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { SdsiteXmlDocument sdDoc = Service.Sdsite.CurrentDocument; PageXmlDocument pageDoc = sdDoc.GetPageDocumentById(PageId); this.DesignWebBrowser.Document.Body.InnerHtml = pageDoc.PageText; }
void titleToolStripTextBox_Validated(object sender, EventArgs e) { SdsiteXmlDocument doc = Service.Sdsite.CurrentDocument; PageSimpleExXmlElement ele = doc.GetPageElementById(_htmlDesigner.PageId); ele.Title = titleToolStripTextBox.Text; doc.Save(); PageXmlDocument pageDoc = doc.GetPageDocumentById(_htmlDesigner.PageId); pageDoc.Title = titleToolStripTextBox.Text; pageDoc.Save(); }