コード例 #1
0
 protected void btnUpdate_OnClick(object sender, EventArgs e)
 {
     // Instead of having the presenter grab the updated customer via the CustomerToUpdate's getter,
     // you could also pass the updated Customer directly to the UpdateCustomer method.
     // I prefer the consistency of using the getter/setter pair.
     presenter.UpdateCustomer(Page.IsValid);
 }