mirror of https://github.com/AMT-Cheif/Stylet.git
Catch another place were MessageBox.Show was used
This commit is contained in:
parent
0ba6061e59
commit
8a93640ad8
|
@ -17,7 +17,7 @@ namespace StyletIntegrationTests
|
||||||
var message = e.Exception.Message;
|
var message = e.Exception.Message;
|
||||||
if (e.Exception is TargetInvocationException)
|
if (e.Exception is TargetInvocationException)
|
||||||
message = e.Exception.InnerException.Message;
|
message = e.Exception.InnerException.Message;
|
||||||
MessageBox.Show(String.Format("Unhandled Exception: {0}", message));
|
IoC.Get<IWindowManager>().ShowMessageBox(String.Format("Unhandled Exception: {0}", message));
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue