Implementing Recent Files WIP

Code refactoring
Entry coloring
This commit is contained in:
bg45
2017-09-29 17:23:35 -04:00
committed by BONNEVILLE Geoffroy
parent 817f25e8a8
commit 1ca3f29da0
12 changed files with 197 additions and 34 deletions

View File

@@ -1,10 +1,18 @@
using System.Collections.ObjectModel;
using ModernKeePass.Models;
using System.ComponentModel;
using System.Linq;
namespace ModernKeePass.ViewModels
{
public class MainVm
public class MainVm : INotifyPropertyChanged
{
public ObservableCollection<MainMenuItem> MainMenuItems { get; set; }
public IOrderedEnumerable<IGrouping<int, MainMenuItem>> MainMenuItems { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
public void NotifyPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}