Exemplo n.º 1
0
        private void ChangePicture()
        {
            square = game.Move(true) - 1;

            Canvas.SetLeft(Picture, X[square]);
            Canvas.SetTop(Picture, Y[square]);
        }
Exemplo n.º 2
0
        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();
        }