// Functio sửa row private void edit() { var result = customers.Update(txt_id_customer.Text, txt_name.Text, Convert.ToInt32(txt_iden.Text), txt_job.Text, txt_position.Text, txt_address.Text); Print_MessageBox(result, "Thông báo sửa"); table_customer.DataSource = new BindingSource(customers.GetAll(), ""); }
// Functio sửa row private void edit() { customers.Update(txt_id_customer.Text, txt_name.Text, Convert.ToInt32(txt_iden.Text), txt_job.Text, txt_position.Text, txt_address.Text); Print_MessageBox("Sửa thông tin khách hàng thành công", "Thông báo sửa"); table_customer.DataSource = new BindingSource(customers.GetAll(), ""); }