mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 04:23:12 +00:00
d47bb1d297
With the new version of Visual Studio bringing C# 12, we can revise our logic for better readability as well as use new methods/APIs introduced in the .NET 8.0 BCL.
16 lines
558 B
C#
16 lines
558 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(PKM p, GameStrings strings, string Position) : EntitySummary(p, strings)
|
|
{
|
|
public Image Sprite => pk.Sprite();
|
|
public override string Position { get; } = Position;
|
|
}
|