-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml.cs
41 lines (37 loc) · 1.7 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using UnitPlanGenerator.Views;
using Prism.Ioc;
using System.Windows;
using UnitPlanGenerator.Services.Interfaces;
using UnitPlanGenerator.Services;
using UnitPlanGenerator.ViewModels;
namespace UnitPlanGenerator
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
private const string AutoHideScrollBarsKey = "AutoHideScrollBars";
protected override Window CreateShell()
{
Current.Resources[AutoHideScrollBarsKey] = true;
return Container.Resolve<MainWindow>();
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.Register<IUserCredentialService, UserCredentialService>();
containerRegistry.Register<IPasswordService, PasswordService>();
containerRegistry.Register<IPasswordHasher, PasswordHasher>();
containerRegistry.Register<ICurriculumImportService, CurriculumImportService>();
containerRegistry.Register<IDialogService, DialogService>();
containerRegistry.RegisterSingleton<IDatabaseService, DatabaseService>();
containerRegistry.RegisterSingleton<IIdentityService, IdentityService>();
containerRegistry.RegisterSingleton<MainWindowViewModel>();
containerRegistry.RegisterSingleton<SettingsPageViewModel>();
containerRegistry.RegisterSingleton<UserManagerPageViewModel>();
containerRegistry.RegisterSingleton<CurriculumPageViewModel>();
containerRegistry.RegisterSingleton<ImportCurriculumPageViewModel>();
containerRegistry.RegisterSingleton<AddSemesterPageViewModel>();
}
}
}