Exemplo n.º 1
0
        /// <summary>
        /// Gets the application tree for the applcation with the specified alias
        /// </summary>
        /// <param name="applicationAlias">The application alias.</param>
        /// <param name="onlyInitializedApplications"></param>
        /// <returns>Returns a ApplicationTree Array</returns>
        public static ApplicationTree[] getApplicationTree(string applicationAlias, bool onlyInitializedApplications)
        {
            var list = AppTrees.FindAll(
                t =>
            {
                if (onlyInitializedApplications)
                {
                    return(t.ApplicationAlias == applicationAlias && t.Initialize);
                }
                return(t.ApplicationAlias == applicationAlias);
            }
                );

            return(list.OrderBy(x => x.SortOrder).ToArray());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the application tree for the applcation with the specified alias
        /// </summary>
        /// <param name="applicationAlias">The application alias.</param>
        /// <param name="onlyInitializedApplications"></param>
        /// <returns>Returns a ApplicationTree Array</returns>
        public static ApplicationTree[] getApplicationTree(string applicationAlias, bool onlyInitializedApplications)
        {
            List <ApplicationTree> list = AppTrees.FindAll(
                delegate(ApplicationTree t)
            {
                if (onlyInitializedApplications)
                {
                    return(t.ApplicationAlias == applicationAlias && t.Initialize);
                }
                else
                {
                    return(t.ApplicationAlias == applicationAlias);
                }
            }
                );

            return(list.OrderBy(x => x.SortOrder).ToArray());
        }