blaberry / FullscreenLock

Like AKADEVILs PrimaryLock, but different.
GNU Lesser General Public License v3.0
92 stars 16 forks source link

Refactor: application context, events to replace pointers, tray icon #9

Closed Ririshi closed 3 years ago

Ririshi commented 3 years ago

This PR is a refactor of the application so it uses an ApplicationContext to keep track of the Checker and the FullscreenLock form. This also made room for the use of events, instead of using a pointer to a text label inside the Checker class, to update the text in the FullscreenLock form. This adds a good amount of extra code, but the outcome is a clean messaging system between the checker and the form.

This branch also includes the changes I originally made for PR #8 (tray icon), because I made those commits to the master branch of my fork, and kept working on it from that point onwards.

Any feedback would be welcome as this is the first C# project I'm working on (and contributing to).