Beispiel #1
0
 private void deleteCurrencyCompleted(object sender, DeleteTLMENUCompletedEventArgs e)
 {
     try
     {
         //delete successful
         if (e.Result)
         {
             //remove on current CurrencyData
             this.currencyData.Remove(this.currentMenu);
             this.Refresh();
         }
         else
         {
             this.messagePop.SetSingleError(CommonResource.errorDelete);
         }
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }
Beispiel #2
0
 private void deleteCurrencyCompleted(object sender, DeleteTLMENUCompletedEventArgs e)
 {
     try
     {
         //delete successful
         if (e.Result)
         {
             //remove on current CurrencyData
             this.currencyData.Remove(this.currentMenu);
             this.Refresh();
         }
         else
             this.messagePop.SetSingleError(CommonResource.errorDelete);
     }
     catch (Exception)
     {
         this.messagePop.SetSingleError(CommonResource.errorCannotConnectServer);
     }
     finally
     {
         MyHelper.IsFree();
     }
 }