mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Code refactor and simplfication
ModernKeePassLib assembly info updated and version fixed
This commit is contained in:
29
ModernKeePass/ViewModels/MainMenuItemVm.cs
Normal file
29
ModernKeePass/ViewModels/MainMenuItemVm.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using ModernKeePass.Interfaces;
|
||||
|
||||
namespace ModernKeePass.ViewModels
|
||||
{
|
||||
public class MainMenuItemVm: IIsEnabled
|
||||
{
|
||||
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 Symbol SymbolIcon { get; set; }
|
||||
public bool IsEnabled => PageType != null;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Title;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user