protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); LogHelper.LogConfig(Server.MapPath(@"~\App_Data\log4net.config")); DtoMapper.AutoMapper(); }
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(); }
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(); }