Program.cs 827 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using System.Windows.Forms;
  6. namespace UAS_MES_Tools
  7. {
  8. internal static class Program
  9. {
  10. /// <summary>
  11. /// 应用程序的主入口点。
  12. /// </summary>
  13. [STAThread]
  14. static void Main()
  15. {
  16. Application.EnableVisualStyles();
  17. Application.SetCompatibleTextRenderingDefault(false);
  18. using (Login loginForm = new Login())
  19. {
  20. DialogResult result = loginForm.ShowDialog();
  21. if (result == DialogResult.OK)
  22. {
  23. Main mainForm = new Main(loginForm._Account, loginForm._Password);
  24. Application.Run(mainForm);
  25. }
  26. }
  27. }
  28. }
  29. }