private void tbxSearch_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     // TODO: Add event handler implementation here.
     if (tbxSearch.Text != "")
     {
         DataSetDocTableAdapters.T_DocTableAdapter adapter = new DataSetDocTableAdapters.T_DocTableAdapter();
         dtDocs = adapter.GetDataByKey(tbxSearch.Text);
         listboxDocs.ItemsSource = dtDocs;
     }
 }
 private void btnSearch_Click(object sender, RoutedEventArgs e)
 {
     if (tbxSearch.Text != "")
     {
         DataSetDocTableAdapters.T_DocTableAdapter adapter = new DataSetDocTableAdapters.T_DocTableAdapter();
         dtDocs = adapter.GetDataByKey(tbxSearch.Text);
         listboxDocs.ItemsSource = dtDocs;
     }
 }