private void buttonThem_Click(object sender, EventArgs e)
        {
            string ma       = textBoxMaKho.Text;
            string ten      = textBoxTenKho.Text;
            string makhuvuc = comboBoxMaKhuVuc.Text;
            //co hieu
            int k = 0;

            //xu ly
            for (int i = 0; i < kh.Count; i++)
            {
                if (ma == kh[i].MaKho)
                {
                    MessageBox.Show("Mã Kho bạn nhập trùng xin nhập mã khác !");
                    k = 1;
                    break;
                }
            }
            if (ten != "" && k == 0 && ma != "" && makhuvuc != "")
            {
                bool them = XL_KhoHang.ThemKhoHang(ma, ten, makhuvuc);
                if (them)
                {
                    MessageBox.Show("Thêm kho hàng thành công !");
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Thêm kho hàng thất bại !");
                    this.Close();
                }
            }
        }
 public int ThemKhoHang(KhoHang kho)
 {
     return(xl_kho.ThemKhoHang(kho));
 }