终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
964 B

  1. using BPA.Helper;
  2. using BPASmart.Model;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Configuration;
  6. using System.Data;
  7. using System.Linq;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. namespace BPASmart.ConfigurationSoftware
  11. {
  12. /// <summary>
  13. /// Interaction logic for App.xaml
  14. /// </summary>
  15. public partial class App : Application
  16. {
  17. protected override void OnStartup(StartupEventArgs e)
  18. {
  19. base.OnStartup(e);
  20. if (e.Args != null && e.Args.Length == 1)
  21. {
  22. var res = e.Args[0];
  23. Json<ProjectModel>.Read(res);
  24. var pages = Json<ProjectModel>.Data.Pages.OrderBy(p => p.Key).ToDictionary(p => p.Key, s => s.Value);
  25. }
  26. MainWindow window = new MainWindow();
  27. window.Show();
  28. }
  29. protected override void OnExit(ExitEventArgs e)
  30. {
  31. base.OnExit(e);
  32. }
  33. }
  34. }