private void ChangePicture() { square = game.Move(true) - 1; Canvas.SetLeft(Picture, X[square]); Canvas.SetTop(Picture, Y[square]); }
private void DispatcherTimer_Tick(object sender, EventArgs e) { int n = game.Move(); foreach (Button btn in buttons) { btn.Content = ""; } buttons[n].Content = TamagotchiImage; CommandManager.InvalidateRequerySuggested(); }