private void AnimationForm_FormClosing(object sender, FormClosingEventArgs e) { playbackTimer.Stop(); renderer.Release(); }