App.xaml.cs 697 B

12345678910111213141516171819202122232425
  1. using Mini8SlaveSim.Configuration;
  2. using Mini8SlaveSim.Services;
  3. using Mini8SlaveSim.Views;
  4. using System.Configuration;
  5. using System.Data;
  6. using System.Windows;
  7. namespace Mini8SlaveSim
  8. {
  9. /// <summary>
  10. /// Interaction logic for App.xaml
  11. /// </summary>
  12. public partial class App : PrismApplication
  13. {
  14. protected override Window CreateShell() => Container.Resolve<MainWindow>();
  15. protected override void RegisterTypes(IContainerRegistry containerRegistry)
  16. {
  17. containerRegistry.RegisterSingleton<ISharedConfig,SharedConfig>();
  18. containerRegistry.RegisterSingleton<ISlaveManagementService,SlaveManagementService>();
  19. }
  20. }
  21. }