예제 #1
0
        private void BtnSaveClient_Click(object sender, EventArgs e)
        {
            serviceDA          = new DBControllerWSClient();
            currentCustomer.id = txtClienteID.Text;
            currentCustomer.descriptionCustomer = txtDesc.Text;
            currentCustomer.address             = txtAddress.Text;
            currentCustomer.occupation          = txtOccupation.Text;
            currentCustomer.email          = txtEmail.Text;
            currentCustomer.phone          = txtPhone.Text;
            currentCustomer.kindOfCustomer = cbTipoCliente.Text;
            currentCustomer.state          = cbActive.Checked? 1: 0;

            serviceDA.updateCustomer(currentCustomer);
            MessageBox.Show("El cliente se modificó satisfactoriamente");
            this.Close();
        }