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

49 regels
1.3 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. using BPA.Helper;
  17. using BPASmart.Model;
  18. namespace BPASmart.PageLoad
  19. {
  20. /// <summary>
  21. /// Interaction logic for MainWindow.xaml
  22. /// </summary>
  23. public partial class MainWindow : Window
  24. {
  25. public MainWindow()
  26. {
  27. InitializeComponent();
  28. this.Loaded += MainWindow_Loaded;
  29. }
  30. List<FrameworkElement> frameworkElements = new List<FrameworkElement>();
  31. private void MainWindow_Loaded(object sender, RoutedEventArgs e)
  32. {
  33. Serialization<BinConfigFile>.Read();
  34. if (!string.IsNullOrEmpty(Serialization<BinConfigFile>.Data.StartPageName))
  35. {
  36. string path = $"{AppDomain.CurrentDomain.BaseDirectory}{FileConfigModel.PageDirName}\\{Serialization<BinConfigFile>.Data.StartPageName}.lay";
  37. if (File.Exists(path))
  38. {
  39. runCanvas.LoadingData(path);
  40. }
  41. }
  42. }
  43. }
  44. }