Beispiel #1
0
        private void updateImages()
        {
            front.Source = imageSourceManager.getImageByKey(cubeRotationHandler.getFrontImage().Key);
            right.Source = imageSourceManager.getImageByKey(cubeRotationHandler.getRightImage().Key);
            top.Source   = imageSourceManager.getImageByKey(cubeRotationHandler.getTopImage().Key);

            rightRotateTransform.Angle = resolveAngle(cubeRotationHandler.getRightImage().Direction) + 90;
            topRotateTransform.Angle   = resolveAngle(cubeRotationHandler.getTopImage().Direction);
            frontRotateTransform.Angle = resolveAngle(cubeRotationHandler.getFrontImage().Direction);
        }
 private void topEqual(Direction direction, ImageKey key)
 {
     Assert.AreEqual(direction, Handler.getTopImage().Direction);
     Assert.AreEqual(key, Handler.getTopImage().Key);
 }