コード例 #1
0
        /// <summary>
        /// Handles the text changed event of the txtItemName
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtItemName_TextChanged(object sender, EventArgs e)
        {
            DataTable dtItem;
            Items itm = new Items();

            if (txtItemName.Text != "")
            {
                string keyword = txtItemName.Text;
                dtItem = itm.GetItemByKeyword(keyword);
            }
            else
            {
                dtItem = itm.GetAllItems(1);
            }
            PopulateItemList(dtItem);
        }