thinkpixellab/bot — Issue #32: Minesweeper demo throws exception on win/loss
Author: tekra
Created: 2011-10-12 18:19:42+00:00
State: open

The following on line 385 in minesweeper.cs causes an exception (something along the lines of 'attempt to throw propertychange event for a property that doesn't exist'):

public const string StatePropertyName = "StateLeft";

It should read:

public const string StatePropertyName = "State";

The exception occurs when you win or lose the game.

In addition, the "square_PropertyChanged" method uses a hard-coded string "State" and should reference the const above.