App.xaml.cs 621 B

123456789101112131415161718192021222324252627282930
  1. using MesAdaptor;
  2. using ST_CUBE_MES.Service;
  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 ST_CUBE_MES
  11. {
  12. /// <summary>
  13. /// App.xaml 的互動邏輯
  14. /// </summary>
  15. public partial class App : Application
  16. {
  17. public App()
  18. {
  19. AppSettingService.Instance.Load();
  20. }
  21. protected override void OnExit(ExitEventArgs e)
  22. {
  23. var stopResult = SajetConnect.SajetTransClose();
  24. base.OnExit(e);
  25. }
  26. }
  27. }