Пример #1
0
        //---------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;
            }
        }
Пример #2
0
        //---------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;
            }
        }