Révision 7b67ff55 INRAETemplate/MauiProgram.cs

Voir les différences:

INRAETemplate/MauiProgram.cs
1 1
using CommunityToolkit.Maui;
2
using INRAETemplate.Services;
3
using INRAETemplate.View;
4
using INRAETemplate.ViewModel;
2 5
using Microsoft.Extensions.Logging;
3 6

  
4 7
namespace INRAETemplate;
......
20 23
                fonts.AddFont("fa-solid.ttf", "FASolid");
21 24
			});
22 25

  
26
        // Services
27
        builder.Services.AddSingleton<ConnexionService>();
28

  
29
		// Views
30
		builder.Services.AddSingleton<AboutView>();
31
		builder.Services.AddSingleton<SettingsView>();
32
		builder.Services.AddSingleton<VivantEditionView>();
33
		builder.Services.AddSingleton<VivantView>();
34

  
35
        // ViewModels
36
		builder.Services.AddSingleton<AboutViewModel>();
37
		builder.Services.AddSingleton<SettingsViewModel>();
38
		builder.Services.AddSingleton<VivantEditionViewModel>();
39
        builder.Services.AddSingleton<VivantViewModel>();
40

  
41

  
23 42
#if DEBUG
24
		builder.Logging.AddDebug();
43
        builder.Logging.AddDebug();
25 44
#endif
26 45

  
27 46
		return builder.Build();

Formats disponibles : Unified diff