|
@@ -33,6 +33,7 @@ namespace PDF_Office.Views.HomePanel.RecentFiles
|
|
|
RecentFilesList.ItemsSource = RecentFilesGroup;
|
|
|
GridRecentFilesList.ItemsSource = RecentFilesGroup;
|
|
|
RecentFilesList.SelectedItem = null;
|
|
|
+ ShowListViewContentUI();
|
|
|
}
|
|
|
|
|
|
private void SetLangText()
|
|
@@ -326,7 +327,7 @@ namespace PDF_Office.Views.HomePanel.RecentFiles
|
|
|
//MessageBoxEx.Show(App.MainPageLoader.GetString("Main_TheFileNotExistWarning"));
|
|
|
SettingHelper.RemoveRecentOpenFile(fileInfo.FilePath);
|
|
|
RecentFilesGroup.Remove(fileInfo);
|
|
|
- ShowListViewContentUI();
|
|
|
+ ShowListViewContentUI();
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -336,6 +337,15 @@ namespace PDF_Office.Views.HomePanel.RecentFiles
|
|
|
private void OpenFiles_Click(object sender, RoutedEventArgs e)
|
|
|
{
|
|
|
|
|
|
+ var dlg = new OpenFileDialog();
|
|
|
+ dlg.Multiselect = true;
|
|
|
+ dlg.Filter = Properties.Resources.OpenDialogFilter;
|
|
|
+
|
|
|
+ if (dlg.ShowDialog() == true)
|
|
|
+ {
|
|
|
+ MainWindow parentWindow = Window.GetWindow(this) as MainWindow;
|
|
|
+ parentWindow.LoadPdfViewer(dlg.FileNames);
|
|
|
+ }
|
|
|
}
|
|
|
#endregion
|
|
|
|