예제 #1
0
        public AnimationGroupElement ConvertToGroup(AnimationSingleElement singleAnimationElement)
        {
            AnimationElements.Remove(singleAnimationElement);
            AnimationGroupElement convertedGroup = AnimationGroupElement.Parse(singleAnimationElement);

            AnimationElements.Add(convertedGroup);

            return(convertedGroup);
        }
예제 #2
0
        public static AnimationGroupElement Parse(AnimationSingleElement singleAnimationElement)
        {
            var convertedGroup = new AnimationGroupElement();

            convertedGroup.Name       = singleAnimationElement.Name;
            convertedGroup.Placement  = singleAnimationElement.Placement;
            convertedGroup.Prediction = singleAnimationElement.Prediction;
            convertedGroup.Route      = singleAnimationElement.Route;
            convertedGroup.Elements   = new List <IAnimationElement>();

            return(convertedGroup);
        }