public void AddStep(object obj)
        {
            Step step = new Step();

            scene.steps.Add(step);
            StepViewModel stepVm = new StepViewModel(this);

            stepVm.step = step;
            StepList.Add(stepVm);
        }
 public StepListViewModel(Scene scene, StepsWindow window, SceneViewModel sceneViewModel)
 {
     this.window         = window;
     this.scene          = scene;
     this.sceneViewModel = sceneViewModel;
     AvailableEmotions.Add(0, "Neutro");
     AvailableEmotions.Add(1, "Feliz");
     AvailableEmotions.Add(2, "Enojado");
     AvailableEmotions.Add(3, "Triste");
     foreach (Step step in scene.steps)
     {
         StepViewModel stepvm = new StepViewModel(this);
         stepvm.step = step;
         StepList.Add(stepvm);
     }
     AddStepCommand  = new RelayCommand(new Action <object>(AddStep));
     ShowHelpCommand = new RelayCommand(new Action <object>(ShowHelp));
     AvailableAudios = ResourceLoader.Instance.GetAudios(sceneViewModel.AudioFolderName);
 }
 public void DeleteStep(StepViewModel viewModel)
 {
     scene.steps.Remove(viewModel.step);
     StepList.Remove(viewModel);
     window.DataGrid_RowChanged();
 }