PKHeX/PKHeX.WinForms/Subforms/Misc/EntitySummaryImage.cs

22 lines
625 B
C#
Raw Normal View History

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