77
88namespace Refresher ;
99
10- public class EtoPlatformInterface : IPlatformInterface
10+ public class EtoPlatformInterface : LoggingPlatformInterface
1111{
1212 private readonly RefresherForm _form ;
1313
@@ -16,34 +16,34 @@ public EtoPlatformInterface(RefresherForm form)
1616 this . _form = form ;
1717 }
1818
19- public void InfoPrompt ( string prompt )
19+ public override void InfoPrompt ( string prompt )
2020 {
21+ base . InfoPrompt ( prompt ) ;
2122 Application . Instance . Invoke ( ( ) =>
2223 {
23- State . Logger . LogInfo ( Platform , prompt ) ;
2424 MessageBox . Show ( this . _form , prompt , "Refresher" ) ;
2525 } ) ;
2626 }
2727
28- public void WarnPrompt ( string prompt )
28+ public override void WarnPrompt ( string prompt )
2929 {
30+ base . WarnPrompt ( prompt ) ;
3031 Application . Instance . Invoke ( ( ) =>
3132 {
32- State . Logger . LogWarning ( Platform , prompt ) ;
3333 MessageBox . Show ( this . _form , prompt , "Refresher" , MessageBoxType . Warning ) ;
3434 } ) ;
3535 }
3636
37- public void ErrorPrompt ( string prompt )
37+ public override void ErrorPrompt ( string prompt )
3838 {
39+ base . ErrorPrompt ( prompt ) ;
3940 Application . Instance . Invoke ( ( ) =>
4041 {
41- State . Logger . LogError ( Platform , prompt ) ;
4242 MessageBox . Show ( this . _form , prompt , "Refresher" , MessageBoxType . Error ) ;
4343 } ) ;
4444 }
4545
46- public QuestionResult Ask ( string question )
46+ public override QuestionResult Ask ( string question )
4747 {
4848 State . Logger . LogInfo ( Platform , $ "Asking user '{ question } '...") ;
4949 DialogResult result = MessageBox . Show ( question , "Refresher" , MessageBoxButtons . YesNo , MessageBoxType . Question ) ;
@@ -57,8 +57,9 @@ public QuestionResult Ask(string question)
5757 } ;
5858 }
5959
60- public void OpenUrl ( Uri uri )
60+ public override void OpenUrl ( Uri uri )
6161 {
62+ base . OpenUrl ( uri ) ;
6263 string url = uri . ToString ( ) ;
6364
6465 try
@@ -82,10 +83,4 @@ public void OpenUrl(Uri uri)
8283 }
8384 // based off of https://stackoverflow.com/a/43232486
8485 }
85-
86- public void PrepareThread ( )
87- { }
88-
89- public void PrepareStopThread ( )
90- { }
9186}
0 commit comments