示例#1
0
 public void SendPersonalChat(string message, ChatRoom room)
 {
     Console.WriteLine("\t(Personal)Sent from {0}: {1}", _name, message);
     Program.Logging(String.Format($"(Personal)Sent from {_name}: {message}") + Environment.NewLine);
     room.Send("\t(Personal)" + message, _name);
 }
示例#2
0
 public void Send(string message)
 {
     Console.WriteLine("Sent from {0}: {1}", _name, message);
     Program.Logging(String.Format($"Sent from {_name}: {message}") + Environment.NewLine);
     _chatRoom.Send(message, _name);
 }