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;
|
2021-11-27 23:48:08 +00:00
|
|
|
using PKHeX.Drawing.PokeSprite;
|
2019-07-14 00:43:05 +00:00
|
|
|
|
2022-06-18 18:04:24 +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)]
|
2022-06-18 18:04:24 +00:00
|
|
|
public sealed class EntitySummaryImage : EntitySummary
|
2019-07-14 00:43:05 +00:00
|
|
|
{
|
2022-06-18 18:04:24 +00:00
|
|
|
public Image Sprite => pk.Sprite();
|
|
|
|
public override string Position { get; }
|
2019-07-14 00:43:05 +00:00
|
|
|
|
2022-06-18 18:04:24 +00:00
|
|
|
public EntitySummaryImage(PKM p, GameStrings strings, string position) : base(p, strings)
|
|
|
|
{
|
|
|
|
Position = position;
|
2019-07-14 00:43:05 +00:00
|
|
|
}
|
2021-06-08 03:02:57 +00:00
|
|
|
}
|