Example #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);

            LogHelper.LogConfig(Server.MapPath(@"~\App_Data\log4net.config"));
            DtoMapper.AutoMapper();
        }
Example #2
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            //AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            LogHelper.LogConfig(Server.MapPath(@"~\App_Data\log4net.config"));
            DtoMapper.AutoMapper();

            QiniuUpload.Config();
        }
Example #3
0
        public mainForm()
        {
            InitializeComponent();
            Control.CheckForIllegalCrossThreadCalls = false;
            DtoMapper.AutoMapper();
            LogHelper.LogConfig("Config\\log4net.config");
            Application.AddMessageFilter(this);
            var rules = Spider.GetRules();

            rules.Insert(0, new SpiderRule()
            {
                Name = "--请选择来源--",
                Url  = ""
            });
            cboRules.DataSource            = rules;
            cboRules.SelectedIndex         = 0;
            cboRules.SelectedIndexChanged += cboRules_SelectedIndexChanged;
            cmbCategory.DataSource         = jokeLogic.GetCategoryList();
        }