public void MessageHandler(object sender, MessageEventArgs args)
 {
     WriteToOutputString(args.Message);
 }
 public void TargetMessageHandler(object sender, MessageEventArgs args)
 {
     //MessageEvent(args.Message);
 }
 public void MessageEvent(string msg)
 {
     MessageEventArgs arg = new MessageEventArgs(msg);
     Task.Factory.StartNew(() => CharacterMessage(this, arg));
 }
示例#4
0
 public void MessageHandler(object sender, MessageEventArgs args)
 {
     Task.Factory.StartNew(() => Message(this, args));
 }