예제 #1
0
        // BUTTON CLICK
        private void button14_Click(object sender, EventArgs e)
        {
            string sl = cboTimKiem.Text;

            try
            {
                //  sl = sl.Replace();

                if (sl == "Mã hàng hóa")
                {
                    dt = BUS_HangHoa.hienthihhtheoma(cmbKey.Text);
                    loaddata1(dt);
                    bindings();
                }
                else if (sl == "Tên hàng hóa")
                {
                    dt = BUS_HangHoa.hienthihhtheoten(cmbKey.Text);
                    loaddata1(dt);
                    bindings();
                }
            }
            catch (Exception ex)
            {
            }
        }