private void GetItem()
 {
     UploadedFile = TextValue.Text.ToString();
     if (!string.IsNullOrWhiteSpace(UploadedFile))
     {
         PdfView.OpenFile(UploadedFile);
     }
 }
Example #2
0
 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();
     }
 }
Example #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);
     }
 }
Example #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();
     }
 }
Example #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;
         }
     }
 }