@@ -45,13 +45,13 @@ public App()
4545 RxAppBuilder . CreateReactiveUIBuilder ( )
4646 . WithExceptionHandler ( Observer . Create < Exception > ( ex =>
4747 {
48- Application . Current ? . Dispatcher . Invoke ( ( ) =>
48+ System . Windows . Application . Current ? . Dispatcher . Invoke ( ( ) =>
4949 {
50- MessageBox . Show (
50+ System . Windows . MessageBox . Show (
5151 $ "ReactiveUI Pipeline Exception:\n \n { ex . Message } \n \n Stack Trace:\n { ex . StackTrace } ",
5252 "ReactiveUI Error" ,
53- MessageBoxButton . OK ,
54- MessageBoxImage . Error ) ;
53+ System . Windows . MessageBoxButton . OK ,
54+ System . Windows . MessageBoxImage . Error ) ;
5555 } ) ;
5656 } ) )
5757 . WithWpf ( )
@@ -93,11 +93,11 @@ private void UnhandledDispatcherException(object sender, DispatcherUnhandledExce
9393 stackTrace = ex . InnerException . StackTrace ;
9494 }
9595
96- MessageBox . Show (
96+ System . Windows . MessageBox . Show (
9797 $ "Unhandled UI Exception:\n \n { message } \n \n Stack Trace:\n { stackTrace } ",
9898 "Critical UI Error" ,
99- MessageBoxButton . OK ,
100- MessageBoxImage . Error ) ;
99+ System . Windows . MessageBoxButton . OK ,
100+ System . Windows . MessageBoxImage . Error ) ;
101101
102102 e . Handled = true ;
103103 }
@@ -111,27 +111,27 @@ private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionE
111111 ? $ "{ exception . Message } \n \n Stack Trace:\n { exception . StackTrace } "
112112 : e . ExceptionObject ? . ToString ( ) ;
113113
114- Application . Current ? . Dispatcher . Invoke ( ( ) =>
114+ System . Windows . Application . Current ? . Dispatcher . Invoke ( ( ) =>
115115 {
116- MessageBox . Show (
116+ System . Windows . MessageBox . Show (
117117 $ "Unhandled AppDomain Exception:\n \n { message } ",
118118 "Critical Domain Error" ,
119- MessageBoxButton . OK ,
120- MessageBoxImage . Error ) ;
119+ System . Windows . MessageBoxButton . OK ,
120+ System . Windows . MessageBoxImage . Error ) ;
121121 } ) ;
122122 }
123123
124124 private void TaskScheduler_UnobservedTaskException ( object sender , UnobservedTaskExceptionEventArgs e )
125125 {
126126 System . Diagnostics . Trace . WriteLine ( e . Exception ) ;
127127
128- Application . Current ? . Dispatcher . Invoke ( ( ) =>
128+ System . Windows . Application . Current ? . Dispatcher . Invoke ( ( ) =>
129129 {
130- MessageBox . Show (
130+ System . Windows . MessageBox . Show (
131131 $ "Unobserved Task Exception:\n \n { e . Exception . InnerException ? . Message ?? e . Exception . Message } ",
132132 "Task Error" ,
133- MessageBoxButton . OK ,
134- MessageBoxImage . Warning ) ;
133+ System . Windows . MessageBoxButton . OK ,
134+ System . Windows . MessageBoxImage . Warning ) ;
135135 } ) ;
136136
137137 e . SetObserved ( ) ;
0 commit comments