Exemplo n.º 1
0
 //public IEnumerable<HeaderDetail<THeaderData, TDetailData>> LoadHeaderDetails(int startPage = 1, int maxPage = 1, bool reloadHeaderPage = false, bool reloadDetail = false, bool loadImage = false,
 public IEnumerable <HeaderDetail_v2 <TDetailData> > LoadHeaderDetails(int startPage             = 1, int maxPage = 1, bool reloadHeaderPage = false, bool reloadDetail = false, bool loadImage = false,
                                                                       bool refreshDocumentStore = false)
 {
     foreach (IHeaderData header in _headerDataPageManager.LoadPages(startPage, maxPage, reloadHeaderPage, false))
     {
         //if (!(header is IHeaderData))
         //    throw new PBException("type {0} is not IHeaderData", header.GetType().zGetTypeName());
         //TDetailData detail = _detailDataManager.Load(new WebRequest { HttpRequest = ((IHeaderData)header).GetHttpRequestDetail(), ReloadFromWeb = reloadDetail, LoadImage = loadImage, RefreshDocumentStore = refreshDocumentStore }).Document;
         TDetailData detail = _detailDataManager.Load(new WebRequest {
             HttpRequest = header.GetHttpRequestDetail(), ReloadFromWeb = reloadDetail, LoadImage = loadImage, RefreshDocumentStore = refreshDocumentStore
         }).Document;
         yield return(new HeaderDetail_v2 <TDetailData> {
             Header = header, Detail = detail
         });
     }
 }
Exemplo n.º 2
0
 //public IEnumerable<Ebookdz_Forum> LoadMainForum(bool reload = false)
 public static IEnumerable <IHeaderData> LoadMainForum(bool reload = false)
 {
     return(__headerWebDataPageManager.LoadPages(startPage: 1, maxPage: 1, reload: reload, loadImage: false, refreshDocumentStore: false));
 }