private void CertLastNameSearch_TextChanged(object sender, TextChangedEventArgs e) { if (DiaryNumberSearch.Text != "") { int UDNumber = Converter(DiaryNumberSearch.Text); DiariesGrid.ItemsSource = PackageSearch.ByUploaded(UDNumber, CertLastNameSearch.Text).DefaultView; } else { DiariesGrid.ItemsSource = PackageSearch.ByUploadCert(CertLastNameSearch.Text).DefaultView; } }
private void DiaryNumberSearch_TextChanged(object sender, TextChangedEventArgs e) { int UDNumber = Converter(DiaryNumberSearch.Text); DiariesGrid.ItemsSource = PackageSearch.ByUploaded(UDNumber).DefaultView; }