Exemplo n.º 1
0
 private void DeleteCustomerHearingAidOrder(DialogResult dialogResult)
 {
     if (dialogResult == DialogResult.Ok)
     {
         Task.Factory.StartNew(() =>
         {
             CustomerAction.DeleteCustomerHearingAidOrders(this.DBConnectionString, this.Entity.CustomerHearingAidOrderCollection.Where(x => x.IsSelected));
             RefreshCustomerHearingAidOrderCollection();
         });
     }
     else
     {
         this.ParentViewModel.ShowProgressBar = false;
     }
 }