private void OnMsg(Object sender, MessageReceivedEventArgs msg)
 {
     eventLogger.WriteEntry("Status: " + msg.Status + " Message: " + msg.Message);
 }
Esempio n. 2
0
 /// <summary>
 /// This function is added to the eventlog, and is callen whens
 /// the event is invoked.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An EventArgs that contains the event data.</param>
 private void onMsg(object sender, MessageReceivedEventArgs e)
 {
     eventLog1.WriteEntry(e.m_status + ": " + e.m_message);
 }
Esempio n. 3
0
 /// <summary>
 /// Writes a Message into Event Log.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The Message.</param>
 protected void OnMsg(object sender, MessageReceivedEventArgs e)
 {
     LogContainer.Log.WriteEntry(e.Message);
 }