//---------EVENTS---------// private void businessFantasyNameSearchTextBox_KeyUp(object sender, KeyEventArgs e) { try { if (!string.IsNullOrEmpty(businessFantasyNameSearchTextBox.Text)) { businessGridView.DataSource = BusinessManagement.SelectBusinessByName(businessFantasyNameSearchTextBox.Text); } else { WireUpBusinessGridView(); } } catch (Exception ex) { throw; } }
//---------SUBCATEGORY---------// //---------EVENTS---------// private void subCategoryNameSearchTextBox_KeyPress(object sender, KeyPressEventArgs e) { string text = subCategoryNameSearchTextBox.Text; try { if (!string.IsNullOrEmpty(subCategoryNameSearchTextBox.Text)) { subCategoryGridView.DataSource = BusinessManagement.SelectBusinessByName(subCategoryNameSearchTextBox.Text); } else { WireUpSubCategoryGridView(); } } catch (Exception) { throw; } }