using PKHeX.Core; namespace PKHeX.WinForms.Controls { public sealed class SlotChangeInfo where TCursor : class { public bool LeftMouseIsDown { get; set; } public bool DragDropInProgress { get; set; } public TCursor? Cursor { get; set; } public string? CurrentPath { get; set; } public SlotViewInfo? Source { get; set; } public SlotViewInfo? Destination { get; set; } public void Reset() { LeftMouseIsDown = DragDropInProgress = false; CurrentPath = null; Cursor = default; } public bool SameLocation => (Destination != null) && (Source?.Equals(Destination) ?? false); public bool DragIsParty => Source?.Slot is SlotInfoParty || Destination?.Slot is SlotInfoParty; } }