예제 #1
0
파일: View.cs 프로젝트: polytronicgr/netrix
        /// <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> >();
        }
예제 #2
0
 internal static void Initialize(XmlControl component)
 {
     edxDocInstance = new EdxDocument(component);
 }