public XmlTabPage(string xmlContent, string fileName) { this.fileName = fileName; this.Text = fileName; xmlRichEdit = new XmlRichEdit(); xmlRichEdit.Dock = DockStyle.Fill; this.Controls.Add(xmlRichEdit); xmlRichEdit.WriteXml(xmlContent); xmlRichEdit.ReadOnly = false; }
public XmlViewForm(string xmlContent, string fileName) { InitializeComponent(); this.fileName = fileName; this.Text = fileName; xmlRichEdit = new XmlRichEdit(); xmlRichEdit.Dock = DockStyle.Fill; this.Controls.Add(xmlRichEdit); xmlRichEdit.WriteXml(xmlContent); xmlRichEdit.ReadOnly = false; }
public XmlTabPage(ObjectInfo objInfo) { string name = Safir.Dob.Typesystem.Operations.GetName(objInfo.Obj.GetTypeId()); name = name.Substring(name.LastIndexOf('.') + 1); //this.Text=name+" : "+obj.InstanceNumber; this.Text = name; //fileName=name+"_"+obj.InstanceNumber.ToString()+".xml"; fileName = name + ".xml"; xmlRichEdit = new XmlRichEdit(); xmlRichEdit.Dock = DockStyle.Fill; this.Controls.Add(xmlRichEdit); xmlRichEdit.WriteXml(Safir.Dob.Typesystem.Serialization.ToXml(objInfo.Obj)); }
public XmlViewForm(Safir.Dob.Typesystem.Object obj) { // // Required for Windows Form Designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // string name = Safir.Dob.Typesystem.Operations.GetName(obj.GetTypeId()); name = name.Substring(name.LastIndexOf('.') + 1); this.Text = "XML Serialization of " + name; // +" instance " + obj.InstanceNumber; //fileName=name+"__inst_"+obj.InstanceNumber.ToString()+".xml"; fileName = name + ".xml"; xmlRichEdit = new XmlRichEdit(); xmlRichEdit.Dock = DockStyle.Fill; this.Controls.Add(xmlRichEdit); xmlRichEdit.WriteXml(Safir.Dob.Typesystem.Serialization.ToXml(obj)); }