Beispiel #1
0
 public void RemoveProductAdmin()
 {
     ProductsList[i] = ProductsList[i - 1];   //get product before current one
     //double price = ProductsList[i].CalculatePrice();
     scannedProducts.Remove(ProductsList[i]); //remove it
     baggingArea.RemoveWeight();              //remove last one
     if (ProductsList[i].IsLooseProduct() == true)
     {
         baggingArea.RemoveWeight(); //has to be done twice for correct weight if it is loose
     }
     --i;                            //count index back
 }
Beispiel #2
0
        private void btnConfirmRemove_Click(object sender, EventArgs e)
        {
            scannedProducts.RemoveLastProduct();
            UpdateDisplay();

            baggingAreaScale.RemoveWeight();
            scannedProducts.RequestRemove();
            UpdateDisplay();
        }