public SchemaEditorView(IView parentView, SaveFileDialog saveFileDlg, Type rootclassType, string pathToDocument)
     : this(parentView, saveFileDlg)
 {
     schemaEditor = new SchemaEditor(rootclassType, new WinFormsSchemaEditorNodeFactory(this));
     if (pathToDocument != null)
     {
         OpenFile(pathToDocument);
     }
     else
     {
         schemaEditor.CreateDefaultRoot();
         Title = "New " + SchemaEditor.GetTypeName(rootclassType);
     }
     foreach (TreeNode node in ux_GraphTree.Nodes)
         node.Expand();
 }
 public void SetUp()
 {
     this.schemaEditor = new SchemaEditor(typeof (hibernatemapping), new SchemaEditorNodeTestFactory());
     this.schemaEditor.Read(new XmlTextReader(new StringReader(MappingXml)));
 }