Esempio n. 1
0
        private void onInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e)
        {
            if (e.Solved)
            {
                Statistics.dynamiteInstructionsSolved++;
            }
            else
            {
                Statistics.dynamiteInstructionsSolved--;
            }

            if (Statistics.dynamiteInstructionsSolved > Statistics.dynamiteMaxInstructionsSolved)
            {
                Statistics.dynamiteMaxInstructionsSolved = Statistics.dynamiteInstructionsSolved;
            }
        }
Esempio n. 2
0
 private void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e)
 {
     Record(new InstructionStateChange(e.InstructionIndex, e.Solved));
 }
Esempio n. 3
0
 public void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e)
 {
     lblInstructions[e.InstructionIndex].color = e.Solved ? ColorSolvedInstruction : ColorUnsolvedInstruction;
 }