Exemplo n.º 1
0
 private void sess_MessageReceived(object sender, MessageReceivedEventArgs e)
 {
     Console.WriteLine("ICBM message received from {0}: {1}", e.Message.ScreenName, e.Message.Message);
 }
Exemplo n.º 2
0
 private void newroom_MessageReceived(object sender, MessageReceivedEventArgs e)
 {
     ChatRoom room = sender as ChatRoom;
     Console.WriteLine(e.Message.ScreenName + "@" + room.DisplayName + ": " + e.Message.Message);
     room.SendMessage("OUCH");
 }