CRUD implemented

This commit is contained in:
2025-09-22 15:35:31 +02:00
parent 9c006b0674
commit e2c588794e
11 changed files with 207 additions and 105 deletions

View File

@@ -19,6 +19,7 @@
<ItemGroup>
<ProjectReference Include="../Logic/Logic.csproj" />
<ProjectReference Include="../Repository/Repository.csproj" />
</ItemGroup>
</Project>

View File

@@ -1,5 +1,6 @@
using Microsoft.Extensions.DependencyInjection;
using Logic;
using Repository;
namespace Keychain;
@@ -25,8 +26,8 @@ class Program
private static ServiceProvider SetupServices()
{
var services = new ServiceCollection();
//services.AddTransient<IPasswordStoreService, PasswordStoreService>();
services.AddSingleton<IPasswordStoreService, PasswordStoreService>();
services.AddSingleton<IRepository, JsonRepository>();
return services.BuildServiceProvider();
}
}

View File

@@ -1,5 +1,5 @@
using Adw;
using Keychain.UI.ViewModels;
using Keychain.ViewModels;
namespace Keychain.UI;

View File

@@ -5,16 +5,9 @@ namespace Keychain.ViewModels;
public class PasswordStoreShortcut : INotifyPropertyChanged
{
private IPasswordService passwordService;
private IPasswordStoreService passwordService;
public event PropertyChangedEventHandler? PropertyChanged;
private string displayName;
private bool displayNameSet = false;
private string? iconName;
private string path;
public bool DisplayNameSet { get => displayNameSet; }
public string DisplayName
{
get => displayName;