예제 #1
0
파일: Program.cs 프로젝트: alstrw/OCStatus
        static async Task Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (args.Any())
            {
                if (args[0].ToString() == "headless")
                {
                    WebDriverService service = new WebDriverService();
                    string           result  = await service.GetCCHStatusAsync(false);

                    await service.PostTeamsMessageAsync(result);

                    return;
                }
            }

            Application.Run(new Form1());
        }
예제 #2
0
 public Form1()
 {
     InitializeComponent();
     Complete = false;
     service  = new WebDriverService(this);
 }