コード例 #1
0
 private void txtSearch_TextChanged(object sender, EventArgs e)
 {
     if (txtSearch.Text == null)
     {
         packages = PackageDB.DisplayPackagesInGrid();
         packageDataGridView.DataSource = packages; //packages is the list to hold the list of packages
     }
     else
     {
         packages = PackageDB.SearchByText(txtSearch.Text);
         packageDataGridView.DataSource = packages;
     }
 }