mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Main sub pages also changed to better work with Main (but needs improvement) Added a Settings Page stub
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using Windows.UI.Xaml;
|
|
using Windows.UI.Xaml.Controls;
|
|
using Windows.UI.Xaml.Navigation;
|
|
using ModernKeePass.ViewModels;
|
|
|
|
// Pour en savoir plus sur le modèle d'élément Page vierge, consultez la page http://go.microsoft.com/fwlink/?LinkId=234238
|
|
|
|
namespace ModernKeePass.Pages
|
|
{
|
|
/// <summary>
|
|
/// Une page vide peut être utilisée seule ou constituer une page de destination au sein d'un frame.
|
|
/// </summary>
|
|
public sealed partial class RecentDatabasesPage
|
|
{
|
|
private Frame _mainFrame;
|
|
|
|
public RecentVm Model => (RecentVm)DataContext;
|
|
|
|
public RecentDatabasesPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
protected override void OnNavigatedTo(NavigationEventArgs e)
|
|
{
|
|
base.OnNavigatedTo(e);
|
|
_mainFrame = e.Parameter as Frame;
|
|
}
|
|
|
|
private void OpenDatabaseUserControl_OnValidationChecking(object sender, EventArgs e)
|
|
{
|
|
var app = (App)Application.Current;
|
|
app.Database.DatabaseFile = Model.SelectedItem.DatabaseFile;
|
|
}
|
|
}
|
|
}
|