private void txtSearchHistory_OnTextChange(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtSearchHistory.text)) { loadReturnHistory(); } else { dgvReturnHistory.DataSource = inventory.searchInventory(txtSearchHistory.text, "1"); loadOthers(); lblHistoryCount.Text = dgvReturnHistory.RowCount.ToString(); } }
private void txtSearchAssign_OnTextChange(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtSearchAssign.text)) { loadInventory(); } else { dgvInventory.DataSource = inventory.searchInventory(txtSearchAssign.text, "0"); loadOthers(); lblInventoryCount.Text = dgvInventory.RowCount.ToString(); } }