Exemplo n.º 1
0
        private void tbSearchSuppliers_TextChanged(object sender, EventArgs e)
        {
            TextBox tb         = (TextBox)sender;
            string  searchSups = tb.Text;

            if (tb.TextLength > 0)
            {
                lbSupplierList.DisplayMember = "SupplierName";
                lbSupplierList.DataSource    = suppliersService.Find(tb.Text);
            }
        }
Exemplo n.º 2
0
        // Search for Suppliers
        private void txtSearchSuppliers_TextChanged(object sender, EventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (tb.Text.Length > 0)
            {
                lbSuppliers.DataSource    = supplierService.Find(tb.Text);
                lbSuppliers.DisplayMember = "SupplierName";
                lbSuppliers.ValueMember   = "SupplierID";
            }
        }