protected virtual void SetAnimation(object cObject) { foreach (Timeline timeline1 in (Collection <Timeline>) this.Timelines) { Timeline timeline2 = Timeline.CreateTimeline(timeline1.FrameType, cObject as NodeObject); foreach (Frame orderedFrame in timeline1.OrderedFrames) { Frame frame = Frame.CreateFrame(orderedFrame); timeline2.Frames.Add(frame); } } }
protected virtual void SetAnimation(object cObject) { foreach (Timeline current in base.Timelines) { Timeline timeline = Timeline.CreateTimeline(current.FrameType, cObject as NodeObject); foreach (Frame current2 in current.OrderedFrames) { Frame item = Frame.CreateFrame(current2); timeline.Frames.Add(item); } } }
public static Timeline GetNodeTimeline(NodeObject node, string FrameType, bool autoCreate = true) { Timeline timeline = null; node.Timelines.ForEach(delegate(Timeline t) { if (t.FrameType == FrameType) { timeline = t; } }); if (node.Parent != null && timeline == null && autoCreate) { timeline = Timeline.CreateTimeline(FrameType, node); } return(timeline); }
public static Timeline GetNodeTimeline(NodeObject node, string FrameType, bool autoCreate = true) { Timeline timeline = (Timeline)null; node.Timelines.ForEach <Timeline>((Action <Timeline>)(t => { if (!(t.FrameType == FrameType)) { return; } timeline = t; })); if (node.Parent != null && timeline == null && autoCreate) { timeline = Timeline.CreateTimeline(FrameType, node); } return(timeline); }