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()); }
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()); }