Ejemplo n.º 1
0
        private static void RunApp()
        {
#if DEBUG
            var app = new TrakHound_Dashboard.App();
            app.InitializeComponent();
            app.Run();
#else
            try
            {
                var app = new TrakHound_Dashboard.App();
                app.InitializeComponent();
                app.Run();
            }
            catch (Exception ex)
            {
                if (SendBugReport(ex))
                {
                    var window  = new BugReportSent();
                    var restart = window.ShowDialog();
                    if (restart == true)
                    {
                        // Restart Application
                        System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
                    }
                }

                //Shutdown Current Application
                Application.Current.Shutdown();
            }
#endif
        }
Ejemplo n.º 2
0
        private static void RunApp()
        {
            #if DEBUG
            var app = new TrakHound_Dashboard.App();
            app.InitializeComponent();
            app.Run();
            #else
            try
            {
                var app = new TrakHound_Dashboard.App();
                app.InitializeComponent();
                app.Run();
            }
            catch (Exception ex)
            {
                if (SendBugReport(ex))
                {
                    var window = new BugReportSent();
                    var restart = window.ShowDialog();
                    if (restart == true)
                    {
                        // Restart Application
                        System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
                    }
                }

                //Shutdown Current Application
                Application.Current.Shutdown();
            }
            #endif
        }