private void UserPutsProductInBaggingAreaCorrect(object sender, EventArgs e)
        {
            int weight = selfCheckout.GetCurrentProduct().GetWeight();

            if (selfCheckout.GetCurrentProduct().IsLooseProduct() == true)      //to double for loose product which gives half correct value
            {
                weight *= 2;
            }
            baggingAreaScale.WeightChangeDetected(weight);    //changes weight with current product

            btnUserScansBarcodeProduct.Enabled               = true;
            btnUserSelectsLooseProduct.Enabled               = true;
            btnUserPutsProductInBaggingAreaCorrect.Enabled   = false;
            btnUserPutsProductInBaggingAreaIncorrect.Enabled = false;
            btnUserChooseToPay.Enabled = true;

            UpdateDisplay();
        }
Exemplo n.º 2
0
 private void UserPutsProductInBaggingAreaCorrect(object sender, EventArgs e)
 {
     baggingAreaScale.WeightChangeDetected(selfCheckout.GetCurrentProduct().GetWeight());
     btnUserPutsProductInBaggingAreaCorrect.Enabled   = false;
     btnUserPutsProductInBaggingAreaIncorrect.Enabled = false;
     btnUserScansBarcodeProduct.Enabled = true;
     btnUserSelectsLooseProduct.Enabled = true;
     btnUserChooseToPay.Enabled         = true;
     UpdateDisplay();
 }
Exemplo n.º 3
0
 private void UserPutsProductInBaggingAreaCorrect(object sender, EventArgs e)
 {
     baggingAreaScale.WeightChangeDetected(selfCheckout.GetCurrentProduct().GetWeight());
     baggingAreaScale.ProductWeightCorrect();
     UpdateDisplay();
 }