protected void Application_Start(object sender, EventArgs e) { // 应用程序启动时创建PaoApplication AppPublic.StartApplication(AppPublic.DefaultConfigFileName , Settings.Default.ConfigStart ? (Func <PaoApplication>)null : RemoteOperationWeb.AppConfig.CreateApplication , PrepareAppliation); }
private void Application_Startup(object sender, StartupEventArgs e) { // 应用程序启动时创建PaoApplication AppPublic.StartApplication(AppPublic.DefaultConfigFileName , Settings.Default.ConfigStart? (Func <PaoApplication>)null : AppConfig.CreateApplication , PrepareAppliation); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // 应用程序启动时创建PaoApplication AppPublic.StartApplication(Settings.Default.ConfigStart , AppPublic.DefaultConfigFileName , CreateApplication , PrepareAppliation); }