private void GetItem()
 {
     UploadedFile = TextValue.Text.ToString();
     if (!string.IsNullOrWhiteSpace(UploadedFile))
     {
         PdfView.OpenFile(UploadedFile);
     }
 }
 private void DiariesGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (DiariesGrid.SelectedIndex > -1)
     {
         DataRowView row = (DataRowView)DiariesGrid.SelectedItems[0];
         PdfView.OpenFile(row["UploadLocation"].ToString());
         UploadedFile = row["UploadLocation"].ToString();
     }
 }
Exemple #3
0
 private void ChooseDiary_Click(object sender, RoutedEventArgs e)
 {
     FilePath = Repository.GetFile();
     if (FilePath != null)
     {
         string fullPath = Path.GetFullPath(FilePath);
         ChosenDiary.Text = Path.GetFileName(FilePath);
         PdfView.OpenFile(fullPath);
     }
 }
Exemple #4
0
 private void Browse_Click(object sender, RoutedEventArgs e)
 {
     FilePath = Repository.GetFile();
     if (FilePath != null)
     {
         string fullPath = Path.GetFullPath(FilePath);
         SelectedDocument.Text = Path.GetFileName(FilePath);
         PdfView.OpenFile(fullPath);
         CheckExecutable();
     }
 }
Exemple #5
0
 private void ChooseDiary_Click(object sender, RoutedEventArgs e)
 {
     FilePath = Repository.GetFile();
     if (FilePath != null)
     {
         string fullPath = Path.GetFullPath(FilePath);
         ChosenDiary.Text = Path.GetFileName(FilePath);
         PdfView.OpenFile(fullPath);
         if (!string.IsNullOrWhiteSpace(SelectedDiary.Text))
         {
             UploadDiary.IsEnabled = true;
         }
     }
 }