static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Show the system tray icon. processIcon = new ProcessIcon(); PauseControl.setInitials(); FileManager.checkFiles(); processIcon.Display(); System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 250; aTimer.Enabled = true; Application.Run(); }
//restarting is done by setting everything to initial state public static void restart() { ticksInactive = 1; PauseControl.setInitials(); }