Exemple #1
0
        /// <summary>
        /// Prepares the help bullets to be showed at the bottom of the page.
        /// </summary>
        /// <param name="bullet">The bullet.</param>
        private void PrepareHelpBullets(string bullet)
        {
            string action = GetRouteDataString("action");

            if (string.IsNullOrEmpty(bullet) || !bullet.StartsWith("_"))
            {
                bullet = "_PartialFull";
            }
            PartialHelpPageModel partial = new PartialHelpPageModel();
            partial.ViewName = action;
            partial.Page = bullet;
            partial.ReturnPage = "_PartialFull";
            partial.SummaryMode = partial.Page == partial.ReturnPage;

            ViewBag.mvc4Link = System.Configuration.ConfigurationManager.AppSettings["Mvc4link"] != null ?
                               System.Configuration.ConfigurationManager.AppSettings["Mvc4link"].ToString() : "#";
            ViewBag.mvc5Link = System.Configuration.ConfigurationManager.AppSettings["Mvc5link"] != null ?
                               System.Configuration.ConfigurationManager.AppSettings["Mvc5link"].ToString() : "#";

            ViewBag.HelpPage = partial;
        }
Exemple #2
0
        private void PrepareHelpBullets(string bullet)
        {
            string action = GetRouteDataString("action");

            if (string.IsNullOrEmpty(bullet) || !bullet.StartsWith("_"))
            {
                bullet = "_PartialFull" + action;
            }
            PartialHelpPageModel partial = new PartialHelpPageModel();
            partial.ViewName = action;
            partial.Page = bullet;

            partial.ReturnPage = "_PartialFull" + action;
            partial.SummaryMode = partial.Page == partial.ReturnPage;

            ViewBag.HelpPage = partial;
        }