// Function Thêm khách hàng private void Add() { DialogResult Dialogresult = MessageBox.Show("Chú ý: Password khi tạo sẽ bị mã hóa", "Chú ý", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (Dialogresult == DialogResult.Yes) { string passwordhash = MD5Hash.CreateMD5(txt_password.Text); string confirmpass_hash = MD5Hash.CreateMD5(txt_confirmPass.Text); string result = accountbus.Create(txt_email.Text, txt_id_customer.Text, passwordhash, confirmpass_hash); Print_MessageBox(result, "Thông báo thêm"); } }