Add currently opened database to main menu

Save and close reloads the page
Design enhancements
Some refactoring
This commit is contained in:
2017-09-28 17:51:30 +02:00
committed by BONNEVILLE Geoffroy
parent caaf34918e
commit 1582060466
6 changed files with 74 additions and 31 deletions

View File

@@ -1,12 +1,23 @@
using System;
using Windows.UI.Xaml.Controls;
using ModernKeePass.Interfaces;
namespace ModernKeePass.Models
{
public class MainMenuItem: IIsEnabled
{
public string Title { get; set; }
private string _title;
public string Title
{
get { return IsEnabled ? _title : _title + " - Coming soon"; }
set { _title = value; }
}
public Type PageType { get; set; }
public object Parameter { get; set; }
public Frame Destination { get; set; }
public int Group { get; set; } = 0;
public bool IsEnabled => PageType != null;
public override string ToString()