Exemple #1
0
 public void DisplayBallonMessage(string message, int mSeconds)
 {
     if (!string.IsNullOrEmpty(message))
     {
         notifyIcon.BalloonTipText = message;
         EasyLog.LogInfo(message);
     }
     notifyIcon.ShowBalloonTip(mSeconds);
 }
Exemple #2
0
 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 !");
     }
 }