private void btEditCustomer_Click_1(object sender, EventArgs e) { ctmBUS = new CustomerBUS(); CustomerDTO ctm = new CustomerDTO(); ctm.IDC = txtNameCustomer.Text; ctm.NAME = txtNameCustomer.Text; ctm.PHONE = txtPhoneCustomer.Text; ctm.DATE = DateTime.Parse(dtBirthday.Text); ctm.CMND = txtIdentifyCardCustomer.Text; bool kq = ctmBUS.edit(ctm); if (kq == false) { MessageBox.Show("Fail!"); } else { MessageBox.Show("Sussces"); } this.loadData(); }