Exemplo n.º 1
0
 void RecvPeerTradeEvent(IIPSocket conn, BitStream r)
 {
     PeerTradeInfoHandler.Read(r);
 }
Exemplo n.º 2
0
 /// <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();
 }