private void CertLastNameSearch_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (DiaryNumberSearch.Text != "")
     {
         int UDNumber = Converter(DiaryNumberSearch.Text);
         DiariesGrid.ItemsSource = DiarySearch.ByUploaded(UDNumber, CertLastNameSearch.Text).DefaultView;
     }
     else
     {
         DiariesGrid.ItemsSource = DiarySearch.ByUploadedCert(CertLastNameSearch.Text).DefaultView;
     }
 }
        private void CertEdipiSearch_TextChanged(object sender, TextChangedEventArgs e)
        {
            int CertEdipi = Converter(CertEdipiSearch.Text);

            DiariesGrid.ItemsSource = DiarySearch.ByUploadedCert(CertEdipi).DefaultView;
        }