
Chapter 12. Building the claims scenario 291
private void getCustomer_Click(object sender, System.EventArgs e) {
localhost.ItsoClaim myClaim = new localhost.ItsoClaim();
try {
getCustomer.Text=myClaim.findCustomer("ABC1234",
"1234567890").ToString();
}
catch (Exception exc) {
errorMsg1.Text = "You have got an ERROR";
errorMsg2.Text = exc.Message;
}
}
private void claim_Click(object sender, System.EventArgs e) {
String [] myArray = new String[] {"me","you","him"};
DateTime myDate = new DateTime(2004,09,26);
localhost.ItsoClaim myClaim = new localhost.ItsoClaim();
claim.Text=myClaim.registerClaim("ABC1234","1234567890",
DateTime.Today, "Just an accident",myArray); ...