コード例 #1
0
 public NewsNodeCreator(NewsPageParameter parameter, NewsConfigurationSection config, NewsDataAccess DAL, XmlDocument document)
 {
     Parameter = parameter;
     Config    = config;
     dal       = DAL;
     xdoc      = document;
 }
コード例 #2
0
 public NewsNodeCreator(NewsPageParameter parameter, NewsConfigurationSection config, NewsDataAccess DAL, XmlDocument document)
 {
     Parameter = parameter;
     Config = config;
     dal = DAL;
     xdoc = document;
 }
コード例 #3
0
        public PageCreatorNewsList(NewsPageParameter parameter, NewsConfigurationSection config)
        {
            Parameter      = parameter;
            Config         = config;
            CreatorElement = config.PageCreators["list"];

            Logger = LogManager.GetLogger(config.Logger);
            dal    = new NewsDataAccess(config);
        }
コード例 #4
0
        public PageCreatorNewsDetail(NewsPageParameter parameter, NewsConfigurationSection config)
        {
            Parameter = parameter;
            Config = config;
            CreatorElement = config.PageCreators["detail"];

            Logger = LogManager.GetLogger(config.Logger);
            dal = new NewsDataAccess(config);
        }
コード例 #5
0
        public PageCreator GetPageCreator(NewsPageParameter Parameter, NewsConfigurationSection config)
        {
            PageCreator creator = null;

            switch (Parameter.PageType)
            {
                case 1:
                    creator = (PageCreator)new PageCreatorNewsList(Parameter, config);
                    break;
                case 2:
                    creator = (PageCreator)new PageCreatorNewsDetail(Parameter, config);
                    break;
            }

            return creator;
        }
コード例 #6
0
        public PageCreator GetPageCreator(NewsPageParameter Parameter, NewsConfigurationSection config)
        {
            PageCreator creator = null;

            switch (Parameter.PageType)
            {
            case 1:
                creator = (PageCreator) new PageCreatorNewsList(Parameter, config);
                break;

            case 2:
                creator = (PageCreator) new PageCreatorNewsDetail(Parameter, config);
                break;
            }

            return(creator);
        }