/// <summary> /// Constructor for the view class. /// </summary> /// <param name="viewroot">Root node from native XML transform document.</param> /// <param name="edxDoc"></param> public View(XmlNode viewroot, EdxDocument edxDoc) { this.docroot = viewroot; this.edxDoc = edxDoc; // default to first view in the document this.currentView = viewroot.SelectSingleNode("//edx:view", edxDoc.XmlnsEdx); if (this.currentView == null) { Util.Err("No edit views found!"); return; } this.currentViewName = this.currentView.SelectSingleNode("@uiname").Value; // maintain cache of container matches and maps this.aContainers = new Dictionary <string, List <Match> >(); this.aContainerMaps = new Dictionary <string, Dictionary <string, string> >(); }
internal static void Initialize(XmlControl component) { edxDocInstance = new EdxDocument(component); }