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 CertEdipiSearch_TextChanged(object sender, TextChangedEventArgs e) { int CertEdipi = Converter(CertEdipiSearch.Text); DiariesGrid.ItemsSource = PackageSearch.ByUploadCert(CertEdipi).DefaultView; }