Closed jdelange22 closed 7 months ago
@daniel-lerch so I made book nullable in VocabularyBookStatistics.cs and upon change of this property I call Refresh()
checking if book
is null and if so resetting the counters to zero. This still involves manually setting the book
property to null from the MainForm.cs. VocabularyBookStatistics cannot be made nullable in MainForm.cs as there is no direct reference from there. Is this what you meant by your change request?
@daniel-lerch I changed the code to reset the counters in the Control itself from the MainForm's UnloadBook() function.
Fixes #47