private void btnCheck_Click(object sender, EventArgs e)
 {
     try
     {
         SetCustomer();
         cust.Validate();
         MessageBox.Show(cust.ActualCost().ToString());
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
Ejemplo n.º 2
0
 public void Check()
 {
     try
     {
         SetCustomer();
         cust.Validate();
         MessageBox.Show(cust.ActualCost().ToString());
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }