Started implementing backend

This commit is contained in:
TypoMustakes
2025-09-22 13:08:08 +02:00
parent 5bd03270d4
commit ebfd763e68
14 changed files with 173 additions and 14 deletions

View File

@@ -17,4 +17,8 @@
<EmbeddedResource Include="UI/AddShortcutWindow/AddShortcutWindow.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../Logic/Logic.csproj" />
</ItemGroup>
</Project>

View File

@@ -1,4 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using Logic;
namespace Keychain;
@@ -25,6 +26,7 @@ class Program
{
var services = new ServiceCollection();
//services.AddTransient<IPasswordStoreService, PasswordStoreService>();
services.AddSingleton<IPasswordStoreService, PasswordStoreService>();
return services.BuildServiceProvider();
}
}

View File

@@ -1,9 +1,11 @@
using System.ComponentModel;
using Logic;
namespace Keychain.UI.ViewModels;
namespace Keychain.ViewModels;
public class PasswordStoreShortcut : INotifyPropertyChanged
{
private IPasswordService passwordService;
public event PropertyChangedEventHandler? PropertyChanged;
private string displayName;
@@ -12,6 +14,7 @@ public class PasswordStoreShortcut : INotifyPropertyChanged
private string path;
public bool DisplayNameSet { get => displayNameSet; }
public string DisplayName
{
get => displayName;

View File

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