mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
29 lines
781 B
C#
29 lines
781 B
C#
using Windows.UI.Xaml.Navigation;
|
|
using ModernKeePass.Domain.Dtos;
|
|
using ModernKeePass.ViewModels;
|
|
|
|
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
namespace ModernKeePass.Views
|
|
{
|
|
/// <summary>
|
|
/// An empty page that can be used on its own or navigated to within a Frame.
|
|
/// </summary>
|
|
public sealed partial class OpenDatabasePage
|
|
{
|
|
private OpenVm Model => (OpenVm)DataContext;
|
|
|
|
public OpenDatabasePage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
|
{
|
|
base.OnNavigatedTo(e);
|
|
var file = e.Parameter as FileInfo;
|
|
Model.SetFileInformation(file);
|
|
}
|
|
}
|
|
}
|