CapgeminiSurface.MenuCard.PlayAnimation C# (CSharp) Method

PlayAnimation() private method

private PlayAnimation ( String name, System.Boolean play, System.Boolean remove ) : void
name String
play System.Boolean
remove System.Boolean
return void
        private void PlayAnimation(String name, Boolean play, Boolean remove)
        {
            var animation = (Storyboard)FindResource(name);
            if (remove)
                animation.Remove();
            if (play)
                animation.Begin();
        }