Debug Item entry and forward / back buttons

This commit is contained in:
2017-09-18 08:40:18 -05:00
parent 8e502e3b1e
commit 273c381389
2 changed files with 10 additions and 5 deletions

View File

@ -328,6 +328,7 @@ namespace SpriteLibrary
}
else
{
string Try = SpriteDatabase.WriteToXMLString<SpriteInfo>(TempInformation);
SpriteInformation.Add(TempInformation);
CurrentSIIndex = SpriteInformation.IndexOf(TempInformation);
}
@ -339,6 +340,8 @@ namespace SpriteLibrary
if (SpriteInformation.Count == 0) return; //nothing to do
CurrentSIIndex++;
if (CurrentSIIndex >= SpriteInformation.Count) CurrentSIIndex = 0;
if (TempInformation == null) TempInformation = new SpriteInfo();
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
SpriteInformationToForm();
UpdateMenu();
}
@ -348,6 +351,8 @@ namespace SpriteLibrary
if (SpriteInformation.Count == 0) return; //nothing to do
CurrentSIIndex--;
if (CurrentSIIndex < 0) CurrentSIIndex = SpriteInformation.Count - 1;
if (TempInformation == null) TempInformation = new SpriteInfo();
TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]);
SpriteInformationToForm();
UpdateMenu();
}