public void MessageReceivedHandler(BaseNetwork.MessageReceivedEventArgs args) { playWindow.Invoke(new MethodInvoker(delegate { playWindow.PrintMessage(args.Message, (network.type == NetWorkType.SERVER) ? (PlayWindow.MessageOwner.Player1) : (PlayWindow.MessageOwner.Player2)); })); Debug.NewMessage("Message received: " + args.Message); }