示例#1
0
 /// <summary>
 /// Handles the response for the Order cancellation.
 /// </summary>
 private void OnCancelOrderResponseReceived(object sender, CancelOrderResponseReceivedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.pollingResponse.ConfirmationId != Guid.Empty)
         {
             lblOrderId.Text        = e.pollingResponse.OrderId.ToString();
             lblConfirmationId.Text = e.pollingResponse.ConfirmationId.ToString();
             lblOrderStatus.Text    = e.pollingResponse.Status.ToString();
         }
     }
     else
     {
         // Log error
     }
 }
 /// <summary>
 /// Handles the response for the Order cancellation.
 /// </summary>
 private void OnCancelOrderResponseReceived(object sender, CancelOrderResponseReceivedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.pollingResponse.ConfirmationId != Guid.Empty)
         {
             lblOrderId.Text = e.pollingResponse.OrderId.ToString();
             lblConfirmationId.Text = e.pollingResponse.ConfirmationId.ToString();
             lblOrderStatus.Text = e.pollingResponse.Status.ToString();
         }
     }
     else
     {
         // Log error
     }
 }