/// <summary>
        /// Handles the <see cref="ClientPeerTradeInfoHandler.GameMessageCallback"/> event from the <see cref="ClientPeerTradeInfoHandler"/>.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="ClientPeerTradeInfoHandlerEventArgs"/> instance containing the event data.</param>
        void PeerTradeInfoHandler_GameMessageCallback(ClientPeerTradeInfoHandler sender, ClientPeerTradeInfoHandlerEventArgs e)
        {
            // Parse the GameMessage
            var msg = GameMessageCollection.CurrentLanguage.GetMessage(e.GameMessage, e.Args);

            // Display
            if (!string.IsNullOrEmpty(msg))
                GameplayScreen.AppendToChatOutput(msg);
        }
Beispiel #2
0
        /// <summary>
        /// Handles the <see cref="ClientPeerTradeInfoHandler.GameMessageCallback"/> event from the <see cref="ClientPeerTradeInfoHandler"/>.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="ClientPeerTradeInfoHandlerEventArgs"/> instance containing the event data.</param>
        void PeerTradeInfoHandler_GameMessageCallback(ClientPeerTradeInfoHandler sender, ClientPeerTradeInfoHandlerEventArgs e)
        {
            // Parse the GameMessage
            var msg = GameMessageCollection.CurrentLanguage.GetMessage(e.GameMessage, e.Args);

            // Display
            if (!string.IsNullOrEmpty(msg))
            {
                GameplayScreen.AppendToChatOutput(msg);
            }
        }