Пример #1
0
 private void TradCancelButton(object sender, RoutedEventArgs e)
 {
     if (isPsTradable)
     {
         backgroundWorker.CancelAsync();
         pstrad.setChargeDeviceDisable();
         if (user_paid > 0)
         {
             PSStatusTextBlock.Text = "退幣中... ";
             pstrad.AutoCalPayoutAmount(1, (user_paid), 0);
         }
         Thread.Sleep(100);
         pstrad.setTransactionFinish();
     }
     shoppingCart.Clear();
 }