Add project files.

This commit is contained in:
2025-10-11 08:15:33 +02:00
commit 5d1e7858f2
140 changed files with 7567 additions and 0 deletions

38
Gready_Poang/App.xaml.cs Normal file
View File

@ -0,0 +1,38 @@
using GreadyPoang.DataLayer.Database;
using System.Diagnostics;
namespace GreadyPoang;
public partial class App : Application
{
private readonly IServiceProvider _services;
public App(IServiceProvider services, DataContext dataContext)
{
InitializeComponent();
dataContext.Database.EnsureCreated();
_services = services;
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
{
if (Debugger.IsAttached)
Debugger.Break();
};
TaskScheduler.UnobservedTaskException += (sender, e) =>
{
if (Debugger.IsAttached)
Debugger.Break();
};
}
protected override Window CreateWindow(IActivationState? activationState)
{
//var splashVm = ServiceLocator.Services.GetRequiredService<SplashViewModelCommands>();
//var shell = new AppShell(splashVm);
var shell = _services.GetRequiredService<AppShell>();
return new Window(shell);
}
}