get cancel button working

This commit is contained in:
Tim Young 2017-09-20 12:43:05 -05:00
parent 9754afd4cd
commit ed09c5602c
2 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@
this.btnCancel.TabIndex = 9;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// btnApply
//

View File

@ -68,6 +68,7 @@ namespace SpriteLibrary
public Sprite CreateSprite(SpriteController ControllerToUse, SpriteDatabase TheDatabaseToUse)
{
Sprite DestSprite = null;
if (ControllerToUse == null) return null;
for (int index = 0; index < Animations.Count; index++)
{
AnimationInfo CurrentAnimation = Animations[index];