Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 private void frontEqual(Direction direction, ImageKey key)
 {
     Assert.AreEqual(direction, Handler.getFrontImage().Direction);
     Assert.AreEqual(key, Handler.getFrontImage().Key);
 }