Exemple #1
0
 private void btnDelete_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (CustomMessageBox.ShowOption("Eliminar", "¿Desea eliminar el registro?", "Si", "No", "", Window.GetWindow(this)) == true)
         {
             mObjAuctionsServicesFactory.GetTradeService().Remove(mLonId);
             ClearControls();
         }
     }
     catch (Exception lObjException)
     {
         CustomMessageBox.Show("Error", lObjException.Message, this.GetParent());
     }
 }
 private List <Trade> SearchTrade()
 {
     return(mObjAuctionServiceFactory.GetTradeService().GetList().Where(x => x.Active == true && x.Removed == false &&
                                                                        x.AuctionId == mObjAuction.Id && x.SellerId != null).ToList());
 }