Esempio n. 1
0
        private void txt_AllSurveysSearchBar_TextChanged(object sender, EventArgs e)
        {
            string Query = txt_AllSurveysSearchBar.Text;

            if (Query == "Search...")
            {
                return;
            }

            SearchSurveys = new List <Survey>();

            using (SurveyController surveyController = new SurveyController())
                SearchSurveys = new List <Survey>(surveyController.Search(Surveys, Query, ref SearchSurvey));

            UpdateListView(SearchSurveys, listView_AllSurveys);
        }