Ejemplo n.º 1
0
 public void AddEmotionDisposition(EmotionDispositionDTO disp)
 {
     _emotionalAppraisalAsset.AddEmotionDisposition(disp);
     EmotionDispositions.DataSource = _emotionalAppraisalAsset.EmotionDispositions.ToList();
     EmotionDispositions.Refresh();
     _mainForm.SetModified();
 }
 public void UpdateEmotionDisposition(EmotionDispositionDTO oldDisp, EmotionDispositionDTO newDisp)
 {
     _emotionalAppraisalAsset.RemoveEmotionDisposition(oldDisp.Emotion);
     _emotionalAppraisalAsset.AddEmotionDisposition(newDisp);
     EmotionDispositions.DataSource = _emotionalAppraisalAsset.EmotionDispositions.ToList();
     EmotionDispositions.Refresh();
 }
 public void RemoveDispositions(IList <EmotionDispositionDTO> dispositionsToRemove)
 {
     foreach (var emotionDispositionDto in dispositionsToRemove)
     {
         _emotionalAppraisalAsset.RemoveEmotionDisposition(emotionDispositionDto.Emotion);
     }
     EmotionDispositions.DataSource = _emotionalAppraisalAsset.EmotionDispositions.ToList();
     EmotionDispositions.Refresh();
 }