public void SetAwardImage(string name)
{
try
{
// Dispose old image
if (AwardPictureBox.Image != null)
AwardPictureBox.Image.Dispose();
AwardPictureBox.Image = Image.FromStream(Program.GetResource("BF2Statistics.Resources." + name + ".jpg"));
}
catch
{
AwardPictureBox.Image = null;
}
}