public void MakeAnimation(LedAnimation pAnimation) { if (pAnimation.Changed) { formAnimationMaker formAnimationMaker = new formAnimationMaker(); formAnimationMaker.Make(pAnimation.GetSize(), pAnimation); pAnimation.Changed = false; formAnimationMaker.Dispose(); } }
private void MakeAnimation(System.Drawing.Size pSize, LedBackground pBackground) { if (pBackground == null) { return; } if (pBackground.Changed && !pBackground.CustomChecked) { formAnimationMaker formAnimationMaker = new formAnimationMaker(); formAnimationMaker.Make(pSize, pBackground); pBackground.Changed = false; formAnimationMaker.Dispose(); } }