Beispiel #1
0
 private void BtnAlter_Click(object sender, EventArgs e)
 {
     if (CustomerController.Alter(new Customer(txtAlterName.Text, txtAlterCPF.Text,
                                               txtAlterRG.Text, cboAlterGender.Text, dtpAlterBirthday.Value,
                                               txtAlterPhone.Text, txtAlterCellPhone.Text,
                                               new Address(txtAlterStreet.Text, txtAlterNumber.Text, txtAlterComplement.Text,
                                                           txtAlterDistrict.Text, txtAlterCity.Text, cboAlterState.Text))))
     {
         CleanAlter();
         UpdateDataGridView();
     }
 }