Started implementing proper ViewModels now that the backend is mostly done

This commit is contained in:
2025-09-26 11:02:37 +02:00
parent e2c588794e
commit 22ad11add1
4 changed files with 38 additions and 54 deletions

View File

@@ -0,0 +1,30 @@
using System.ComponentModel;
using Models;
namespace Keychain.ViewModels;
public class PasswordStoreViewModel : INotifyPropertyChanged
{
private PasswordStore _model;
public event PropertyChangedEventHandler? PropertyChanged;
public string? DisplayName
{
get => _model.DisplayName;
}
public string? IconName
{
get => _model.IconName;
}
public string Path
{
get => _model.Path;
}
public PasswordStoreViewModel(PasswordStore item)
{
_model = item;
}
}