protected override IKeyframe DeserializeKeyframe(XElement serializedData)
        {
            ColourKeyframe newKeyframe = new ColourKeyframe();
            newKeyframe.Deserialize(serializedData);

            return newKeyframe;
        }
        protected override IKeyframe DeserializeKeyframe(XElement serializedData)
        {
            ColourKeyframe newKeyframe = new ColourKeyframe();

            newKeyframe.Deserialize(serializedData);

            return(newKeyframe);
        }
        private static void AddColourKeyframe(string sequenceName, XElement xmlFrameData)
        {
            ColourKeyframe newKeyframe = new ColourKeyframe();
            newKeyframe.DurationInMilliseconds = Convert.ToInt32(xmlFrameData.Attribute("duration").Value);

            newKeyframe.TargetTint = new Color(
                Convert.ToByte(xmlFrameData.Attribute("tint-r").Value),
                Convert.ToByte(xmlFrameData.Attribute("tint-g").Value),
                Convert.ToByte(xmlFrameData.Attribute("tint-b").Value),
                Convert.ToByte(xmlFrameData.Attribute("tint-a").Value));

            AddKeyframe(sequenceName, newKeyframe);
        }