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(); } }
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); } }
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(); } }
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; } } }