终端一体化运控平台
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.
 
 
 

40 lines
1.0 KiB

  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. using BPA.Communication;
  11. using System.IO;
  12. using System.Diagnostics;
  13. namespace BPASmart.ConfigurationSoftware
  14. {
  15. /// <summary>
  16. /// Interaction logic for App.xaml
  17. /// </summary>
  18. public partial class App : Application
  19. {
  20. protected override void OnStartup(StartupEventArgs e)
  21. {
  22. base.OnStartup(e);
  23. if (e.Args != null && e.Args.Length == 1)
  24. {
  25. var res = e.Args[0];
  26. Json<ProjectModel>.Read(res);
  27. var pages = Json<ProjectModel>.Data.Pages.OrderBy(p => p.Key).ToDictionary(p => p.Key, s => s.Value);
  28. }
  29. MainWindow window = new MainWindow();
  30. window.Show();
  31. }
  32. protected override void OnExit(ExitEventArgs e)
  33. {
  34. base.OnExit(e);
  35. }
  36. }
  37. }