public FileInfo AddAnimation(string filePath) { var animation = AnimationDescription.Create(); animation.Name = Path.GetFileNameWithoutExtension(filePath); animation.Save(filePath); var animationFile = new FileInfo(filePath); _animationFiles.Add(filePath, animationFile); this.AnimationAdded?.Invoke(this, new FileEventArgs(animationFile)); return(animationFile); }