示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }