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); } }
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); } }
/// <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(); }