Program.cs 849 B

123456789101112131415161718192021222324252627282930
  1. namespace OINA.Extender.Testharness
  2. {
  3. using System;
  4. using System.Windows.Forms;
  5. /// <summary>
  6. /// Progarm Class
  7. /// </summary>
  8. public static class Program
  9. {
  10. /// <summary>
  11. /// The main entry point for the application.
  12. /// </summary>
  13. [STAThread]
  14. public static void Main()
  15. {
  16. try
  17. {
  18. Application.EnableVisualStyles();
  19. Application.SetCompatibleTextRenderingDefault(false);
  20. Application.Run(new MainForm());
  21. }
  22. catch (LicenseCheckException e)
  23. {
  24. MessageBox.Show(@"This application will shutdown, as a valid license is not available." + Environment.NewLine + e.Message, @"Error Message");
  25. Application.Exit();
  26. }
  27. }
  28. }
  29. }