Beispiel #1
0
        private void Compute()
        {
            try
            {
                var quantity  = LocalUtils.ConvertToInteger(txtQuantity.Text);
                var unitprice = LocalUtils.ConvertToDouble(txtUnitPrice.Text);

                var total = mainLogic.ComputeTotal(quantity, unitprice);
                txtTotal.Text = total.ToString();
            }
            catch (Exception)
            {
                throw;
            }
        }