App.xaml.cs 740 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Threading;
  9. using Flyinsono.Client.Test;
  10. namespace Flyinsono.Client.Test
  11. {
  12. /// <summary>
  13. /// Interaction logic for App.xaml
  14. /// </summary>
  15. public partial class App : Application
  16. {
  17. public static Dispatcher MainDispatcher;
  18. protected override void OnStartup(StartupEventArgs e)
  19. {
  20. MainDispatcher = Dispatcher.CurrentDispatcher;
  21. DefaultLogEngine.DataFolder = AppDomain.CurrentDomain.BaseDirectory;
  22. base.OnStartup(e);
  23. }
  24. }
  25. }