ChristophCaina / TrayIconForTinkerForge

a small notification application that monitors the TinkerForge BrickDaemon Service
0 stars 1 forks source link

Show notification on Startup and if ServiceStatus has changed #5

Open Christoph-Caina opened 6 years ago

Christoph-Caina commented 6 years ago

Show a StatusNotification at Startup and also, if the Status of the Service has changed during the Runtime without user interaction with TFTray (service was stopped or started directly through service.msc

Christoph-Caina commented 6 years ago

If ServiceStatus is changing: Since the app is performing a request on the service status every x ms, we can't call the notification directly within this method. If we do, we get a notification about the service status every time, when the method will be called (every x ms)

We need another way to check frequently, if the service status has changed - and if yes, that label text, notification icons and buttons are handled like now.

Christoph-Caina commented 6 years ago

Partially fixed: Now, the App is showing the Service Status directly after AppStart and if the Service Status was changed after Menue or ButtonClick in the Application