First commit

This commit is contained in:
2025-09-26 17:32:32 +02:00
commit 6c5579809d
14 changed files with 417 additions and 0 deletions

30
Feladat1/Program.cs Normal file
View File

@@ -0,0 +1,30 @@
using Feladat1.UI.MainWindow;
using Logic;
using Microsoft.Extensions.DependencyInjection;
using Repository;
namespace Feladat1;
class Program
{
static int Main()
{
var application = Adw.Application.New("org.piper.feladat1", Gio.ApplicationFlags.FlagsNone);
application.OnActivate += (sender, args) =>
{
var window = new MainWindow().Window;
window.Application = (Adw.Application)sender;
window.Show();
};
return application.RunWithSynchronizationContext(null);
}
private static ServiceProvider SetupServices()
{
var services = new ServiceCollection();
services.AddSingleton<IRepository, JsonRepository>();
services.AddSingleton<IUserService, UserService>();
return services.BuildServiceProvider();
}
}