LiveCodingChat.MainClass.Room_Client_MessageReceived C# (CSharp) Метод

Room_Client_MessageReceived() статический приватный Метод

static private Room_Client_MessageReceived ( LiveCodingChat room, LiveCodingChat e ) : void
room LiveCodingChat
e LiveCodingChat
Результат void
        static void Room_Client_MessageReceived(LiveCodingChat.Xmpp.Room room, LiveCodingChat.Xmpp.MessageReceivedEventArgs e)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine (e.Nick + ": " + e.Message);
            Console.ForegroundColor = ConsoleColor.White;
            string fnd = e.Message.ToLower ();
            System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex ("NE[E]*I[I]*N TO[O]*M NE[E]*I[I]*N");
            if (fnd.Contains("@tom") || fnd.Contains("@bobstriker")||r.IsMatch(fnd.ToUpper()))
            {
                if (player == null)
                    System.Media.SystemSounds.Exclamation.Play ();
                else
                    player.Play ();
            }
        }