Пример #1
0
        public static List<HelpCenterItem> GetHelpCenter(string module, string helpLinkBlock)
        {
            var url = CommonLinkUtility.GetHelpLink();
            if (string.IsNullOrEmpty(url))
            {
                return null;
            }

            var storage = new BaseHelpCenterStorage<HelpCenterData>(HttpContext.Current.Server.MapPath("~/"), "helpcenter.html", "helpcenter");
            var storageData = storage.GetData(url, "/gettingstarted/" + module, helpLinkBlock);

            return storageData != null ? storageData.ListItems : null;
        }
Пример #2
0
        private static List<VideoGuideItem> GetVideoGuidesAll()
        {
            var url = CommonLinkUtility.GetHelpLink();
            if (string.IsNullOrEmpty(url))
            {
                return new List<VideoGuideItem>();
            }

            var storage = new BaseHelpCenterStorage<VideoGuideData>(HttpContext.Current.Server.MapPath("~/"),"videoguide.html", "videoguide");
            var storageData = storage.GetData(url, "/video.aspx", CommonLinkUtility.GetHelpLink(false));

            return storageData == null ? new List<VideoGuideItem>() : storageData.ListItems;
        }
Пример #3
0
        private static List <VideoGuideItem> GetVideoGuidesAll()
        {
            var baseUrl = CommonLinkUtility.GetHelpLink(false);;

            if (string.IsNullOrEmpty(baseUrl))
            {
                return(new List <VideoGuideItem>());
            }

            var storage     = new BaseHelpCenterStorage <VideoGuideData>(HttpContext.Current.Server.MapPath("~/"), "videoguide.html", "videoguide");
            var storageData = storage.GetData(baseUrl, CommonLinkUtility.GetHelpLink() + "/video.aspx", baseUrl);
            var result      = new List <VideoGuideItem>();

            if (storageData != null)
            {
                result.AddRange(storageData.ListItems);
            }
            return(result);
        }