예제 #1
0
 private void btnDeleteProduct_Click(object sender, EventArgs e)
 {
     if (mlvProdutcs.FocusedItem != null)
     {
         if (!pda.Delete(operatedProduct))
         {
             lblManageProductAlertSuccessfull.Visible = false;
             lblManageProductAlertFail.Visible        = true;
             lblManageProductAlertFail.BringToFront();
         }
         else
         {
             lblManageProductAlertFail.Visible        = false;
             lblManageProductAlertSuccessfull.Visible = true;
             lblManageProductAlertSuccessfull.BringToFront();
         }
         UpdateProductList(mainFilter.Products);
     }
 }
예제 #2
0
 public bool Delete()
 {
     return(dataAccess.Delete(this));
 }