void editor_Save(object sender, EventArgs e)
 {
     if (animation != null)
     {
         animation.Dispose();
     }
     animation = editor.Animation;
 }