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); }
private void Requery() { if (FilePath == null) { return; } string filePath = AppPublic.GetAbsolutePath(FilePath); if (!File.Exists(filePath)) { return; } _DataTable = IOPublic.ReadObjectFromFile(filePath) as DataTable; }