Exemplo n.º 1
0
        private void SetupMine()
        {
            myD1 = DiceManagement.ThrowDie();
            myD2 = DiceManagement.ThrowDie();

            MyDie1.Source = new BitmapImage(new Uri("images/D" + myD1 + ".png", UriKind.Relative));
            MyDie2.Source = new BitmapImage(new Uri("images/D" + myD2 + ".png", UriKind.Relative));
        }
Exemplo n.º 2
0
        private void SetupEnemies()
        {
            enemyD1 = DiceManagement.ThrowDie();
            enemyD2 = DiceManagement.ThrowDie();

            EnemyDie1.Source = new BitmapImage(new Uri("images/D" + enemyD1 + ".png", UriKind.Relative));
            EnemyDie2.Source = new BitmapImage(new Uri("images/D" + enemyD2 + ".png", UriKind.Relative));
        }