public SetAwardImage ( string name ) : void | ||
name | string | The Award ID |
return | void |
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;
}
}