// Function Thêm khách hàng private void Add() { if (txt_ID.Text == "") { Print_MessageBox("Vui lòng nhập thông tin khách hàng", "Thông báo thêm"); } else { var result = customer.Create(txt_name.Text, Convert.ToInt32(txt_ID.Text), txt_job.Text, txt_position_job.Text, txt_address.Text); Print_MessageBox(result, "Thông báo thêm"); } }
// Function Thêm khách hàng private void Add() { customer.Create(txt_name.Text, Convert.ToInt32(txt_ID.Text), txt_job.Text, txt_position_job.Text, txt_address.Text); Print_MessageBox("Thêm thành công khách hàng", "Thông báo thêm"); }