Ejemplo n.º 1
0
 /// <summary>
 /// Raises the <see cref="E:LogNewEntry" /> event.
 /// </summary>
 /// <param name="e">The <see cref="SendMessageEventArgs" /> instance containing the event data.</param>
 private static void OnLogNewEntry(SendMessageEventArgs e)
 {
     if (LogNewEntry != null)
     {
         // Invokes the delegates.
         LogNewEntry(null, e);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Send a message to the log system
        /// </summary>
        /// <param name="messageToSend">Message to be sent</param>
        /// <param name="messageType">Type of message</param>
        public static void SendMsg(string messageToSend, MessageType messageType)
        {
            SendMessageEventArgs args = new SendMessageEventArgs(messageToSend, messageType);

            OnLogNewEntry(args);
        }