Example #1
0
        /// <summary>
        /// Creates the solution tab.
        /// </summary>
        /// <param name="solution">The solution.</param>
        /// <param name="consoleOrder">The console order.</param>
        private static void CreateTab(Solution solution, int consoleOrder)
        {
            var tab = new TopMenu();

            tab.InSolution            = solution;
            tab.Name                  = solution.Name;
            tab.ConsoleOrder          = consoleOrder;
            tab.HideOnDesktop         = solution.HideOnDesktop;
            tab.HideOnTablet          = solution.HideOnTablet;
            tab.HideOnMobile          = solution.HideOnMobile;
            tab.NavigationElementIcon = solution.ApplicationIcon;
            tab.IsTopMenuVisible      = true;
            tab.Save();

            var appTabSection = CreateSection(tab.As <NavContainer>(), solution, solution.Name, true);

            appTabSection.Save();
        }