public AnimationGroupElement ConvertToGroup(AnimationSingleElement singleAnimationElement) { AnimationElements.Remove(singleAnimationElement); AnimationGroupElement convertedGroup = AnimationGroupElement.Parse(singleAnimationElement); AnimationElements.Add(convertedGroup); return(convertedGroup); }
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); }