Пример #1
0
 /// <summary>
 /// Executes the rotation on the real Rubik when the animation finished
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnRotatingFinished(object sender, RotationFinishedEventArgs e)
 {
     ResetLayerRotation();
     foreach (AnimatedLayerMove m in e.Info.Moves)
     {
         this.Rubik.RotateLayer(new LayerMove(m.Move.Layer, m.Move.Direction, m.Move.Twice));
     }
     _selections.Reset();
 }
 /// <summary>
 /// Executes the rotation on the real Rubik when the animation finished
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnRotatingFinished(object sender, RotationFinishedEventArgs e)
 {
     ResetLayerRotation();
       foreach (AnimatedLayerMove m in e.Info.Moves)
       {
     this.Rubik.RotateLayer(new LayerMove(m.Move.Layer, m.Move.Direction, m.Move.Twice));
       }
       _selections.Reset();
 }