mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Add currently opened database to main menu
Save and close reloads the page Design enhancements Some refactoring
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user