Example #1
0
 // delete
 private void button5_Click(object sender, EventArgs e)
 {
     if (animation.FrameCount != 0)
     {
         pictureBox1.Image = null;
         animation.RemoveFrame(currentFrame);
         if (currentFrame == animation.FrameCount)
         {
             currentFrame--;
         }
         label1.Text = string.Format("{0} subimage{1}", animation.FrameCount, animation.FrameCount != 1 ? "s" : string.Empty);
         SelectFrame();
         Saved = false;
     }
 }