示例#1
0
        internal static void RefreshAllFiles(TreeNode pConfigManagerTreeNode,
                  ContextMenuStrip mnContextCnfgManFile, ContextMenuStrip mnContextCnfgManFile_Fail,
                  ContextMenuStrip mnGroupOrProperty, Storage pStorage)
        {
            pStorage.LoadStorage();
            foreach (ConfigProviderElement provider in Fwk.Configuration.ConfigurationManager.ConfigProvider.Providers)
            {
                
                LoadFile(pConfigManagerTreeNode, mnContextCnfgManFile,mnContextCnfgManFile_Fail, mnGroupOrProperty,  provider,true);
            }

        }
示例#2
0
文件: frmMain.cs 项目: gpanayir/sffwk
        private void InitializeDocPanels()
        {
            _Storage = new Storage();

            dockPanelConfigManager1.Storage = _Storage;

            dockPanelConfigManager1.Panel = this.splitContainer1.Panel2.Controls;
            if (!_WorkSpace.Contains(ConfigurationType.ConfigurationManager))
            {
                dockPanelConfigManager1.Storage = _Storage;
                dockPanelConfigManager1.Enter += new EventHandler(_dockPanelConfigManager_Enter);

                _WorkSpace.Add(dockPanelConfigManager1, ConfigurationType.ConfigurationManager);
            }
        }
示例#3
0
        /// <summary>
        /// Guarda en cache (IsolatedStorage) los pares [FileName,FullFileName]
        /// </summary>
        /// <param name="pConfigManagerTreeNode"></param>
        /// <param name="pStorage"></param>
        internal static void SaveIsolatedStorage(TreeNode pConfigManagerTreeNode, Storage pStorage)
        {
            ListDictionary dic = null;
            pStorage.ConfigManagerFiles.Clear();
            foreach (TreeNode wFileNode in pConfigManagerTreeNode.Nodes)
            {
                dic = (ListDictionary)wFileNode.Tag;
                pStorage.ConfigManagerFiles.Add(wFileNode.Text, dic["FullFileName"].ToString());
            }

            pStorage.CreateStorage();
        }