private void JediImageValidation(IJedi jediCharacter, PictureBox paduin) { try { image = Image.FromFile(jediCharacter.CharacterImage); paduin.Image = image; paduin.Height = image.Height; paduin.Width = image.Width; } catch (FileNotFoundException) { throw new FileNotFoundException("The path of " + jediCharacter.GetType().Name + " is not in the correct format !"); } }