using GeoSigmaDrawLib; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace LibTest { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { //AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; LicenseInfo license = Security.CurentLicenseInfo; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new FormMain()); Application.Run(new FrmDatabaseIO()); } private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { Console.WriteLine("有未经处理的异常,程序即将退出!"); //Thread.Sleep(5000); Environment.Exit(-1); } } }