1234567891011121314151617181920212223242526272829303132333435363738394041 |
- // See https://aka.ms/new-console-template for more information
- using PCC.Gui;
- namespace PCC;
- internal class PccGuiProgram
- {
- [STAThread]
- public static void Main(string[] args)
- {
- Console.WriteLine("Hello, World!");
- #if DEBUG
- try
- {
- #endif
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- // 创建并显示主窗体
- var mainWindow = new PccMainForm();
- Application.Run(mainWindow);
- #if DEBUG
- }
- catch (Exception e)
- {
- Console.WriteLine(e);
- }
- finally
- {
- Console.WriteLine();
- Console.Write("Finished, press ENTER to exit...");
- Console.ReadLine();
- }
- #endif
- Console.WriteLine("Bye, World!");
- }
- }
|