public void DisplayBallonMessage(string message, int mSeconds) { if (!string.IsNullOrEmpty(message)) { notifyIcon.BalloonTipText = message; EasyLog.LogInfo(message); } notifyIcon.ShowBalloonTip(mSeconds); }
void OnTimerEvent(object sender, EventArgs e) { if (_noSleep && DateTime.Now >= _stopSleeping) { _noSleep = false; EasyLog.LogInfo("OnTimerEvent->Stop Trigger"); AllowSleep(); DisplayBallonMessage("Time-Marker reached: Allow sleep mode !!!", 3000); rbAllow.Checked = true; return; } if (_noSleep) { SetThreadExecutionState(_processor | _monitor); Debug.WriteLine("No Sleep Event !"); } }