Main page now allows password input

Group nesting works
This commit is contained in:
2017-09-15 15:58:51 +02:00
parent e97344011d
commit b54fff2502
7 changed files with 103 additions and 29 deletions

View File

@@ -31,15 +31,19 @@ namespace ModernKeePass
if (file != null)
{
// Application now has read/write access to the picked file
textBlock.Text = "Opened database: " + file.Name;
var database = new DatabaseVm();
database.Open(file, "test");
Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
DataContext = new DatabaseVm(file);
}
else
{
textBlock.Text = "Operation cancelled.";
}
}
private void openBbutton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
var database = DataContext as DatabaseVm;
database.Open();
if (database.IsOpen)
Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
}
}
}