private void PreventSleepTimer_Tick(object sender, ElapsedEventArgs e) { // when mining keep system awake, prevent sleep Helpers.PreventSleep(); }