Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

33 righe
779 B

  1. using Prism.DryIoc;
  2. using Prism.Ioc;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Windows;
  6. namespace ModbusDemo
  7. {
  8. /// <summary>
  9. /// Interaction logic for App.xaml
  10. /// </summary>
  11. public partial class App : PrismApplication
  12. {
  13. /// <summary>
  14. /// 创建启动页面
  15. /// </summary>
  16. /// <returns>启动页面</returns>
  17. protected override Window CreateShell()
  18. {
  19. return Container.Resolve<MainWindow>();
  20. }
  21. /// <summary>
  22. /// 实现控制反转和依赖注入功能
  23. /// </summary>
  24. /// <param name="containerRegistry"></param>
  25. protected override void RegisterTypes(IContainerRegistry containerRegistry)
  26. {
  27. }
  28. }
  29. }