void editor_Save(object sender, EventArgs e)
 {
     if (animation != null)
     {
         animation.Dispose();
     }
     animation = editor.Animation;
 }
 public FrameBasedAnimation(FrameBasedAnimation original)
 {
     foreach (Bitmap bmp in original.frames)
     {
         frames.Add(new Bitmap(bmp));
     }
     bboxes = new List <BoundingBox>(original.bboxes);
     width  = original.Width;
     height = original.Height;
     bbmode = original.bbmode;
     // TODO CRITICAL: copy the other variables
 }
 public FrameBasedAnimation(FrameBasedAnimation original)
 {
     foreach (Bitmap bmp in original.frames)
         frames.Add(new Bitmap(bmp));
     bboxes = new List<BoundingBox>(original.bboxes);
     width = original.Width;
     height = original.Height;
     bbmode = original.bbmode;
     // TODO CRITICAL: copy the other variables
 }
 void editor_Save(object sender, EventArgs e)
 {
     if (animation != null)
         animation.Dispose();
     animation = editor.Animation;
 }