void LoadType(string nodeType)
 {
     if (Frame.MainFrameData.HasElement("Node", nodeType, "Style"))
     {
         NodeStyle = Frame.MainFrameData.GetAllElementContent("Node", nodeType, "Style");
     }
     foreach (string feature in Frame.MainFrameData.GetOneElementAllContent("Node", nodeType, "Feature"))
     {
         AllFeature.Add(feature, GetFeature(feature, nodeType));
     }
 }
Ejemplo n.º 2
0
        public PageViewModelBase(string panelName) : base(panelName)
        {
            this.RegistSelf(AllAppMsg.PanelCreateComplete, (msg) => { CreateFeature(); });

            view = Frame.AllPanel[panelName];
            PanelInfo info = Frame.AllPanelInfo[panelName];

            foreach (string feature in info.feature)
            {
                AllFeature.Add(feature, GetFeature(feature, panelName));
            }
        }