终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

49 rindas
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. }