Program.cs 593 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Windows.Forms;
  4. namespace TurnoffMonitorOnLock
  5. {
  6. internal static class Program
  7. {
  8. private static IList<string> _commandLineArgs;
  9. internal static IList<string> CommandLineArgs => new List<string>(_commandLineArgs);
  10. [STAThread]
  11. private static void Main(string[] args)
  12. {
  13. _commandLineArgs = args;
  14. Application.EnableVisualStyles();
  15. Application.SetCompatibleTextRenderingDefault(false);
  16. Application.Run(new MainForm());
  17. }
  18. }
  19. }