PKHeX/PKHeX.WinForms/Subforms/Misc/EntitySummaryImage.cs
2023-04-01 15:20:14 -07:00

21 lines
625 B
C#

using System.Diagnostics.CodeAnalysis;
using System.Drawing;
using PKHeX.Core;
using PKHeX.Drawing.PokeSprite;
namespace PKHeX.WinForms;
/// <summary>
/// Bind-able summary object that can fetch sprite and strings that summarize a <see cref="PKM"/>.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
public sealed class EntitySummaryImage : EntitySummary
{
public Image Sprite => pk.Sprite();
public override string Position { get; }
public EntitySummaryImage(PKM p, GameStrings strings, string position) : base(p, strings)
{
Position = position;
}
}