Commit 05db5192 authored by 潘栩锋's avatar 潘栩锋 🚴

Merge remote-tracking branch 'remotes/origin/dev7.0' into dev7.0-filmCasting

parents bd8b8098 9b0227fa
...@@ -13,6 +13,16 @@ namespace Install ...@@ -13,6 +13,16 @@ namespace Install
/// </summary> /// </summary>
public partial class App : Application public partial class App : Application
{ {
public App()
{
AppDomain.CurrentDomain.UnhandledException += (s, e) =>
{
MessageBox.Show("程序出现异常,请把下面信息拍照发给厂家" + Environment.NewLine + e.ExceptionObject.ToString(),
"异常,联系厂家",
MessageBoxButton.OK, MessageBoxImage.Error);
};
}
public static T Resolve<T>() public static T Resolve<T>()
{ {
return (T)App.Current.Properties[typeof(T).FullName]; return (T)App.Current.Properties[typeof(T).FullName];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment