CRUD implemented
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../Logic/Logic.csproj" />
|
||||
<ProjectReference Include="../Repository/Repository.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
using Adw;
|
||||
using Keychain.UI.ViewModels;
|
||||
using Keychain.ViewModels;
|
||||
|
||||
namespace Keychain.UI;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user