﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;

namespace GreenMemory
{
    /// <summary>
    /// Interaction logic for PlayerView.xaml
    /// </summary>
    public partial class PlayerView : UserControl
    {
        static string[] pointImages;

        public PlayerView()
        {
            if(pointImages == null)
            {
                 pointImages = Directory.GetFiles("Game\\Score");
            }
            InitializeComponent();
        }

        public void setPoints(int points)
        {
            imgScore.Source = new BitmapImage(new Uri(pointImages[points], UriKind.Relative));
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;

namespace GreenMemory
{
    /// <summary>
    /// Interaction logic for PlayerView.xaml
    /// </summary>
    public partial class PlayerView : UserControl
    {
        static string[] pointImages;

        public PlayerView()
        {
            if(pointImages == null)
            {
                 pointImages = Directory.GetFiles("Game\\Score\\3X");
            }
            InitializeComponent();
        }

        public void setPoints(int points)
        {
            imgScore.Source = new BitmapImage(new Uri(pointImages[points], UriKind.Relative));
        }
    }
}

Change to use higher res score image
Change to use higher res score image
