Example #1
0
 // -------------------------------------------------------
 // Logging
 // -------------------------------------------------------
 // Log Pattern:
 // -------------------------------------------------------
 // sWorkingOn = "what are we doing"
 // startProcces = DateTime.Now;
 // Log.System(sWorkingOn));
 // Do stuff
 // EndProcces = DateTime.Now;
 // Log.System("Done" + Environment.NewLine + Log.LapsTime(startProcces, EndProcces, sWorkingOn));
 // Log.Spacer());
 // -------------------------------------------------------
 public static void OnNewLogEvent(string Line)
 {
     if (Changed != null)
     {
         MessegeEventArgs ea = new MessegeEventArgs(Line);
         Changed(new Log(), ea);
     }
 }
Example #2
0
 /// <summary>
 /// Handles the OnErrorOccours event of the _alarmService control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="MessegeEventArgs"/> instance containing the event data.</param>
 private void _alarmService_OnErrorOccours(object sender, MessegeEventArgs e)
 {
     MessageBox.Show(e.Message);
 }