void RemovingElementsAnimation() { for (int i = 0; i < combinations.Count(); i++) { MyAnimation.OpacityAnimation( candies[Int32.Parse("" + combinations[i][1]), Int32.Parse("" + combinations[i][0])].img, true); } }
private void SwapElements(int row1, int col1, int row2, int col2, int quantity = 1) { ChangeIndexesOnly(row1, col1, row2, col2); if (row1 == row2) { MyAnimation.SwapTwoImages(candies[row1, col1].img, candies[row2, col2].img, true, quantity); } else if (col1 == col2) { MyAnimation.SwapTwoImages(candies[row1, col1].img, candies[row2, col2].img, false, quantity); } }
public void MoveImages() { for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { if (NeedToMoveImage(i, j)) { MyAnimation.MoveOneImage(i, j, size, candies[i, j].img); } } } }
void CreateNewCandy(int row, int column) { candies[row, column].Change(rand); MyAnimation.OpacityAnimation(candies[row, column].img, false); }
public void ElementClicked(object sender, RoutedEventArgs e) { //анимация выделения элемента MyAnimation.ResizeElement(sender, size); }