public static TreeRequestParams FromDictionary(Dictionary <string, string> items)
        {
            TreeRequestParams treeParams = new TreeRequestParams();

            treeParams.m_params = items;
            return(treeParams);
        }
        /// <summary>
        /// If the application supports multiple trees, then this function iterates over all of the trees assigned to it
        /// and creates their top level nodes and context menus.
        /// </summary>
        /// <param name="appAlias"></param>
        private void LoadAppTrees(TreeRequestParams treeParams)
        {
            //find all tree definitions that have the current application alias
            List<TreeDefinition> treeDefs = TreeDefinitionCollection.Instance.FindActiveTrees(treeParams.Application);

            foreach (TreeDefinition treeDef in treeDefs)
            {
                BaseTree bTree = treeDef.CreateInstance();
                bTree.SetTreeParameters(treeParams);
                xTree.Add(bTree.RootNode);
            }
        }
 /// <summary>
 /// Load an empty tree structure to show the end user that there was a problem loading the tree.
 /// </summary>
 private void LoadNullTree(TreeRequestParams treeParams)
 {
     BaseTree nullTree = new NullTree(treeParams.Application);
     nullTree.SetTreeParameters(treeParams);
     nullTree.Render(ref xTree);
 }
        /// <summary>
        /// This will load the particular ITree object and call it's render method to get the nodes that need to be rendered.
        /// </summary>
        /// <param name="appAlias"></param>
        /// <param name="treeAlias"></param>
        private void LoadTree(TreeRequestParams treeParams)
        {
            TreeDefinition treeDef = TreeDefinitionCollection.Instance.FindTree(treeParams.TreeType);

            if (treeDef != null)
            {
                BaseTree bTree = treeDef.CreateInstance();
                bTree.SetTreeParameters(treeParams);
                bTree.Render(ref xTree);
            }
            else
                LoadNullTree(treeParams);
        }
		public static TreeRequestParams FromDictionary(Dictionary<string, string> items)
		{
			TreeRequestParams treeParams = new TreeRequestParams();
			treeParams.m_params = items;
			return treeParams;
		}