static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); mainWindow = new XMLEditorWindow(); Application.Run(mainWindow); }
public XMLDocumentController(XMLEditorWindow edtr, string xmlfile, string xsdfile,string xmlns,string xmlnsuri) { this.SelectedXMLEditor = edtr; this.selectedDocumentFilename=xmlfile; xmlns = this.GetNamespaceFromSchemaFile(xsdfile); XMLEditor.XMLEditorMain.VXDDEFAULTXMLNS = xmlns; LoadValidatedXSD(xmlfile, xsdfile, xmlns, xmlnsuri); LoadValidatedXML(xmlfile,xsdfile,xmlns,xmlnsuri); this.imgList = new ImageList(); Icon treeNodeDefaultTag = (Icon)XMLEditor.Properties.Resources.DefaultTag; Icon treeNodeDefaultAttr = (Icon)XMLEditor.Properties.Resources.DefaultAttr; Icon vxdIcon = (Icon)XMLEditor.Properties.Resources.vxd; this.imgList.Images.Add("DEFAULTTAG", treeNodeDefaultTag); this.imgList.Images.Add("DEFAULTATTR",treeNodeDefaultAttr); this.imgList.Images.Add("DEFAULTVXD",vxdIcon); this.selectedEditor.leftTreeView.ImageList = this.imgList; this.selectedEditor.rightTreeView.ImageList = this.imgList; this.RefreshEditors(); XMLEditorMain.mainWindow.Update(); }