Started implementing proper ViewModels now that the backend is mostly done
This commit is contained in:
30
App/ViewModels/PasswordStoreViewModel.cs
Normal file
30
App/ViewModels/PasswordStoreViewModel.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user