Пример #1
0
 public CubeViewModel(Cube cube)
 {
     this.cube  = cube;
     FrontFace  = new FaceViewModel(cube.FrontFace);
     BackFace   = new FaceViewModel(cube.BackFace);
     LeftFace   = new FaceViewModel(cube.LeftFace);
     RightFace  = new FaceViewModel(cube.RightFace);
     TopFace    = new FaceViewModel(cube.TopFace);
     BottomFace = new FaceViewModel(cube.BottomFace);
     faces      = new List <FaceViewModel>()
     {
         FrontFace,
         BackFace,
         LeftFace,
         RightFace,
         TopFace,
         BottomFace
     };
 }
Пример #2
0
 public void RotateCounterClockwise(FaceViewModel faceviewModel)
 {
     cube.RotateCounterClockwise(faceviewModel.Face);
     TriggerChanges();
 }