Example #1
0
        public void LoadUserVisible <T>(MsgBase msg)
        {
            MsgVar <string> tmpMSg = msg as MsgVar <string>;

            userVisible = bool.Parse(RWXml.TemporaryReadContent(
                                         PanelInfo.name,
                                         FileFolder.LinkPath(AppController.GetInstence().appPath, "Frame", FrameController.GetInstence().frameName, "Layout") + tmpMSg.parameter + ".xml",
                                         "UserVisible"
                                         ));
        }
Example #2
0
        public void SaveUserVisible <T>(MsgBase msg)
        {
            MsgVar <string> tmpMSg = msg as MsgVar <string>;

            RWXml.TemporaryAddPropertySetContent(
                PanelInfo.name,
                userVisible.ToString(),
                FileFolder.LinkPath(AppController.GetInstence().appPath, "Frame", FrameController.GetInstence().frameName, "Layout") + tmpMSg.parameter + ".xml",
                "UserVisible"
                );
        }
 /// <summary>
 /// 加载应用程序数据
 /// </summary>
 void LoadAppData()
 {
     mainAppData = new RWXml(appPath, "AppData.xml");                 //加载AppData
     foreach (var path in mainAppData.GetDoubleLayerElements("Load")) //遍历加载所有AppData中的Load信息
     {
         foreach (var file in path.Value)
         {
             AllAppData.Add(file.Value, new RXml(appPath + path.Key, file.Key + ".xml"));
         }
     }
     MsgCenter.SendMsg(new MsgBase(AllAppMsg.AppLoadComplete));//程序加载完成
 }