Beispiel #1
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_MainForum_v3();
     __current.DataPageNominalType = typeof(PostHeaderDataPage_v1);
     __current.CreateDataPageManager(xe.zXPathElement("Forum"));
 }
Beispiel #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_MainForum_v3();
            __current.DataPageNominalType = typeof(PostHeaderDataPage_v1);
            __current.CreateDataPageManager(xe.zXPathElement("Forum"));
        }