Started implementing backend
This commit is contained in:
@@ -17,4 +17,8 @@
|
||||
<EmbeddedResource Include="UI/AddShortcutWindow/AddShortcutWindow.xml" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../Logic/Logic.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Keychain.UI.ViewModels;
|
||||
namespace Keychain.ViewModels;
|
||||
|
||||
using Adw;
|
||||
using Gtk;
|
||||
Reference in New Issue
Block a user