Exemple #1
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            searchClick = true;

            if (txtLastSearch.Text == "" && cmbDept.SelectedItem == null) //Validate search criteria
            {
                browseData.ItemsSource = viewModel.DisplayProfessors();
            }
            else
            {
                browseData.ItemsSource = viewModel.SearchProfessor(txtLastSearch.Text, cmbDept.Text);
            }
        }
Exemple #2
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            searchClick = true;

            if (txtLastSearch.Text == "" && cmbDept.SelectedItem == null) //Deciphers what textboxes have data or not
            {
                rateData.ItemsSource = viewModel.DisplayProfessors();
            }
            else
            {
                rateData.ItemsSource = viewModel.SearchProfessor(txtLastSearch.Text, cmbDept.Text);
            }
        }