2017-05-22 21:55:05 -07:00
|
|
|
|
using PKHeX.Core;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.WinForms
|
|
|
|
|
{
|
|
|
|
|
public class SlotChangeInfo
|
|
|
|
|
{
|
2017-06-17 18:37:19 -07:00
|
|
|
|
public bool LeftMouseIsDown { get; set; }
|
|
|
|
|
public bool RightMouseIsDown { get; set; }
|
|
|
|
|
public bool DragDropInProgress { get; set; }
|
2017-05-22 21:55:05 -07:00
|
|
|
|
|
2017-06-17 18:37:19 -07:00
|
|
|
|
public object Cursor { get; set; }
|
|
|
|
|
public string CurrentPath { get; set; }
|
2017-05-22 21:55:05 -07:00
|
|
|
|
|
2017-06-17 18:37:19 -07:00
|
|
|
|
public SlotChange Source { get; private set; }
|
|
|
|
|
public SlotChange Destination { get; private set; }
|
2017-05-22 21:55:05 -07:00
|
|
|
|
|
2017-06-17 18:37:19 -07:00
|
|
|
|
private readonly byte[] BlankData;
|
2017-05-22 21:55:05 -07:00
|
|
|
|
|
|
|
|
|
public SlotChangeInfo(SaveFile sav)
|
|
|
|
|
{
|
|
|
|
|
BlankData = sav.BlankPKM.EncryptedPartyData;
|
|
|
|
|
Reset();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool SameSlot => Source.Slot == Destination.Slot && Source.Box == Destination.Box;
|
|
|
|
|
public void Reset()
|
|
|
|
|
{
|
|
|
|
|
LeftMouseIsDown = RightMouseIsDown = DragDropInProgress = false;
|
|
|
|
|
Source = new SlotChange {OriginalData = BlankData};
|
|
|
|
|
Destination = new SlotChange();
|
|
|
|
|
Cursor = CurrentPath = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|