protected override void OnStartup(StartupEventArgs e) { if (e.Args.Length == 1 && e.Args[0] == "--execute-schedule") { ScheduleExecutor.Go(); } else { MainWindow mainWin = new MainWindow(); mainWin.Show(); } }
private void btnTestExecute_Click(object sender, RoutedEventArgs e) { ScheduleExecutor.Go(true); }