public void OnPrivateMessageSent(object sender, PrivateMessageSentEventArgs e) { if (tabIdentifier == e.To) { WriteOutgoingMessage(mNetworkManager.OurCallsign, e.Message); } }
public void OnPrivateMessageSent(object sender, PrivateMessageSentEventArgs e) { dynamic data = new ExpandoObject(); data.To = e.To.ToUpper(); data.Message = e.Message; SendMessage(new XplaneConnect { Type = XplaneConnect.MessageType.PrivateMessageSent, Timestamp = DateTime.Now, Data = data }.ToJSON()); }