private void searchBtn_Click(object sender, RoutedEventArgs e) { try { dataGridCustomers.DataContext = vm.CallSearchProduct(searchBox.Text.ToString()); } catch (MySqlException ex) { MessageBox.Show(ex.ToString()); } }
private void searchBtn_Click(object sender, RoutedEventArgs e) { try { dataGridCustomers.DataContext = vm.CallSearchProduct(searchBox.Text.ToString()); } catch (MySqlException ex) { MessageBox.Show(ex.ToString()); } }