void RecvPeerTradeEvent(IIPSocket conn, BitStream r) { PeerTradeInfoHandler.Read(r); }
/// <summary> /// Handles when the Close button on the form is clicked. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="SFML.Window.MouseButtonEventArgs"/> instance containing the event data.</param> protected override void CloseButtonClicked(object sender, MouseButtonEventArgs e) { // Instead of closing when clicked, make a request to the server to cancel the trade PeerTradeInfoHandler.WriteCancel(); }