Example #1
0
        public static BlogDemoor_v3 CreateDataManager_v3(string parameters = null)
        {
            NamedValues <ZValue> parameters2 = ParseParameters(parameters);
            bool test = WebData.GetTestValue(parameters2);

            //InitLoadImage(test);
            return(BlogDemoor_v3.Create(test));
        }
Example #2
0
        public static BlogDemoor_v3 Create(bool test)
        {
            XElement xe;

            if (!test)
            {
                xe = XmlConfig.CurrentConfig.GetElement(__configName);
            }
            else
            {
                Trace.WriteLine("{0} init for test", __configName);
                xe = XmlConfig.CurrentConfig.GetElement(__configName + "_Test");
            }
            __current = new BlogDemoor_v3();
            __current.HeaderPageNominalType = typeof(BlogDemoorHeaderDataPages);
            __current.CreateDataManager(xe);
            //__current.DetailDataManager.Version = 2;     // use WebData<TData>.Load()
            __current.DetailDataManager.ImageLoadVersion = 2;
            return(__current);
        }