Need to ensure that when the solutions for the various puzzles are shown, pressing the 'x' in the top right corner has the same effect as pressing the 'hide solution' button. In other words it makes the crossword text go back to normal.
Got this working by passing the Crossword into the solution as a parameter. Then when window closing event is called, it calls the method in crossword to change the corresponding text.
Need to ensure that when the solutions for the various puzzles are shown, pressing the 'x' in the top right corner has the same effect as pressing the 'hide solution' button. In other words it makes the crossword text go back to normal.