public PreventiveSchedulerService() { InitializeComponent(); _cancelSource = new CancellationTokenSource(); _scheduler = new PreventiveScheduler(); int timerInterval = int.Parse(ConfigurationManager.AppSettings["TimerInterval"]); double interval = timerInterval * 60 * 1000; _timer = new System.Timers.Timer(interval); _timer.Elapsed += _timer_Elapsed; }
public frmMain() { InitializeComponent(); _cancelSource = new CancellationTokenSource(); _scheduler = new PreventiveScheduler(); }