예제 #1
0
 private void deleteCurrencyCompleted(object sender, DeleteTLSYSROLECompletedEventArgs e)
 {
     try
     {
         //delete successful
         if (e.Result)
         {
             //remove on current DANHSACHPHIEUNHAP
             this.DANHSACHLOTHUOC.Remove(this.currentSelectItem);
             this.Refresh();
         }
         else
         {
             this.messagePop.SetSingleError(CommonResource.errorDelete);
         }
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }
 private void deleteCurrencyCompleted(object sender, DeleteTLSYSROLECompletedEventArgs e)
 {
     try
     {
         //delete successful
         if (e.Result)
         {
             //remove on current DANHSACHPHIEUNHAP
             this.DANHSACHPHIEUNHAP.Remove(this.currentSelectItem);
             this.Refresh();
         }
         else
             this.messagePop.SetSingleError(CommonResource.errorDelete);
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }