diff --git a/Marechai.App/App.xaml.cs b/Marechai.App/App.xaml.cs index 34ed0be2..1b3eb70e 100644 --- a/Marechai.App/App.xaml.cs +++ b/Marechai.App/App.xaml.cs @@ -1,4 +1,5 @@ using System.Net.Http; +using Marechai.App.Services; using Microsoft.UI.Xaml; using Uno.Extensions; using Uno.Extensions.Configuration; @@ -96,8 +97,9 @@ public partial class App : Application }) .ConfigureServices((context, services) => { - // TODO: Register your services - //services.AddSingleton(); + // Register application services + services.AddSingleton(); + services.AddSingleton(); }) .UseNavigation(RegisterRoutes)); diff --git a/Marechai.App/Enums.cs b/Marechai.App/Enums.cs new file mode 100644 index 00000000..883c6202 --- /dev/null +++ b/Marechai.App/Enums.cs @@ -0,0 +1,14 @@ +namespace Marechai.App; + +public enum NewsType +{ + NewComputerInDb = 1, + NewConsoleInDb = 2, + NewComputerInCollection = 3, + NewConsoleInCollection = 4, + UpdatedComputerInDb = 5, + UpdatedConsoleInDb = 6, + UpdatedComputerInCollection = 7, + UpdatedConsoleInCollection = 8, + NewMoneyDonation = 9 +} \ No newline at end of file diff --git a/Marechai.App/Presentation/MainPage.xaml b/Marechai.App/Presentation/MainPage.xaml index 300d2e95..d0398720 100644 --- a/Marechai.App/Presentation/MainPage.xaml +++ b/Marechai.App/Presentation/MainPage.xaml @@ -1,29 +1,132 @@ - + + - - - - - - - - - -