Exemplo 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;
            }
        }
Exemplo n.º 2
0
 private void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e)
 {
     Record(new InstructionStateChange(e.InstructionIndex, e.Solved));
 }
Exemplo n.º 3
0
 public void OnInstructionSolvedStateChanged(DynamiteGame sender, InstructionSolvedStateChangedArgs e)
 {
     lblInstructions[e.InstructionIndex].color = e.Solved ? ColorSolvedInstruction : ColorUnsolvedInstruction;
 }