Example #1
0
        //static Ebookdz_ForumHeader()
        //{
        //    Ebookdz.FakeInit();
        //    Init(test: DownloadPrint.Test);
        //}

        public static void Init(bool test = false)
        {
            XElement xe;

            if (!test)
            {
                xe = XmlConfig.CurrentConfig.GetElement(__configName);
            }
            else
            {
                pb.Trace.WriteLine("{0} init for test", __configName);
                xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test");
            }
            EbookdzLogin.Init(xe);
            __current = new Ebookdz_ForumHeader();
            __current.DataPageNominalType = typeof(PostHeaderDataPage <PostHeader>);
            __current.Create(xe.zXPathElement("ForumHeader"));
        }
Example #2
0
        //public static void Init(bool test = false)
        //{
        //    XElement xe;
        //    if (!test)
        //        xe = XmlConfig.CurrentConfig.GetElement(__configName);
        //    else
        //    {
        //        pb.Trace.WriteLine("{0} init for test", __configName);
        //        xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test");
        //    }
        //    EbookdzLogin.Init(xe);
        //    __current = new Ebookdz();
        //    __current.HeaderPageNominalType = typeof(PostHeaderDataPage<PostHeader>);
        //    __current.Create(xe);
        //    ServerManagers.Add(__serverName, __current.CreateServerManager(__serverName));
        //}

        public static IServerManager CreateServerManager(bool test = false)
        {
            XElement xe;

            if (!test)
            {
                xe = XmlConfig.CurrentConfig.GetElement(__configName);
            }
            else
            {
                pb.Trace.WriteLine("{0} init for test", __configName);
                xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test");
            }
            EbookdzLogin.Init(xe);
            __current = new Ebookdz();
            __current.HeaderPageNominalType = typeof(PostHeaderDataPage <PostHeader>);
            __current.CreateDataManager(xe);
            return(__current);
        }
Example #3
0
 protected override HttpRequestParameters GetHttpRequestParameters()
 {
     return(EbookdzLogin.GetHttpRequestParameters());
 }
Example #4
0
 protected override void InitLoadFromWeb()
 {
     EbookdzLogin.InitLoadFromWeb();
 }