Remotely/Remotely_Desktop.Win/App.xaml.cs
2019-05-03 10:07:52 -07:00

27 lines
805 B
C#

using Remotely_Desktop.Win.Services;
using Remotely_Desktop.Win.ViewModels;
using Remotely_ScreenCast.Core.Utilities;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace Remotely_Desktop.Win
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
Logger.Write(e.Exception);
MessageBox.Show("There was an unhandled exception.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
e.Handled = true;
}
}
}