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