예제 #1
0
 private void OnGameMessageReceived_Console(object sender, GameMessageOptionEventArgs e)
 {
     if (InvokeRequired)
     {
         // We're not in the UI thread, so we need to call BeginInvoke
         BeginInvoke(new EventHandler <GameMessageOptionEventArgs>(OnGameMessageReceived_Console), sender, e);
         return;
     }
     WriteLine("==> " + e.Info.BuildMessage());
 }
예제 #2
0
 private void OnGameMessageReceived_Console(object sender, GameMessageOptionEventArgs e)
 {
     if (InvokeRequired)
     {
         // We're not in the UI thread, so we need to call BeginInvoke
         BeginInvoke(new EventHandler<GameMessageOptionEventArgs>(OnGameMessageReceived_Console), sender, e);
         return;
     }
     WriteLine("==> " + e.Info.BuildMessage());
 }