App.xaml.cs 835 B

1234567891011121314151617181920212223242526272829303132
  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. namespace GDNXFD.Alert.Config
  9. {
  10. /// <summary>e
  11. /// Interaction logic for App.xaml
  12. /// </summary>
  13. public partial class App : Application
  14. {
  15. void App_Startup(object sender, StartupEventArgs e)
  16. {
  17. try
  18. {
  19. // Start the application anyway to show error message
  20. Views.MainWindow main = new Views.MainWindow();
  21. main.Show();
  22. }
  23. catch (Exception ex)
  24. {
  25. System.Diagnostics.Debug.WriteLine(ex);
  26. Views.ErrorWindow main = new Views.ErrorWindow();
  27. main.Show();
  28. }
  29. }
  30. }
  31. }