Exemplo n.º 1
0
        private AnimationViewModel MapAnimationViewModel(ulong animationId, string name)
        {
            var vm = new AnimationViewModel(animationId, name);

            vm.NameChanged += newName => _editor.RenameAnimation(animationId, newName);
            return(vm);
        }
Exemplo n.º 2
0
 private void OnDocumentLoaded(DocumentLoaded msg)
 {
     Animations.Clear();
     _index.Clear();
     foreach (var animation in msg.Document.GetAnimations())
     {
         AddAnimation(animation.Id, animation.Name);
     }
     _selectedAnimation = null;
 }