diff --git a/src/KeyKeeper/Views/MainWindow.axaml.cs b/src/KeyKeeper/Views/MainWindow.axaml.cs index 4bd8192..d5b408d 100644 --- a/src/KeyKeeper/Views/MainWindow.axaml.cs +++ b/src/KeyKeeper/Views/MainWindow.axaml.cs @@ -61,6 +61,7 @@ namespace KeyKeeper.Views var topLevel = TopLevel.GetTopLevel(this); if (topLevel == null) return; + // Открываем диалог выбора файла var files = await topLevel.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions { Title = "Открыть хранилище паролей", @@ -102,4 +103,17 @@ namespace KeyKeeper.Views messageBox.ShowDialog(this); } } + + public class RecentVault + { + public string Path { get; set; } = string.Empty; + public DateTime LastOpened { get; set; } + + public string DisplayPath => System.IO.Path.GetFileName(Path); + + public override string ToString() + { + return DisplayPath; + } + } } \ No newline at end of file