private void onInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e) { if (e.Solved) { Statistics.dynamiteInstructionsSolved++; } else { Statistics.dynamiteInstructionsSolved--; } if (Statistics.dynamiteInstructionsSolved > Statistics.dynamiteMaxInstructionsSolved) { Statistics.dynamiteMaxInstructionsSolved = Statistics.dynamiteInstructionsSolved; } }
private void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e) { Record(new InstructionStateChange(e.InstructionIndex, e.Solved)); }
public void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e) { lblInstructions[e.InstructionIndex].color = e.Solved ? ColorSolvedInstruction : ColorUnsolvedInstruction; }