Esempio n. 1
0
        protected override void OnAssetDataLoaded(EmotionalAppraisalAsset asset)
        {
            //Emotion Dispositions
            _emotionDispositionsVM                     = new EmotionDispositionsVM(this);
            comboBoxDefaultDecay.SelectedIndex         = comboBoxDefaultDecay.FindString(_emotionDispositionsVM.DefaultDecay.ToString());
            comboBoxDefaultThreshold.SelectedIndex     = comboBoxDefaultThreshold.FindString(_emotionDispositionsVM.DefaultThreshold.ToString());
            dataGridViewEmotionDispositions.DataSource = _emotionDispositionsVM.EmotionDispositions;

            //Appraisal Rule
            _appraisalRulesVM = new AppraisalRulesVM(this);
            dataGridViewAppraisalRules.DataSource = _appraisalRulesVM.AppraisalRules;
            EditorTools.HideColumns(dataGridViewAppraisalRules, new[] {
                PropertyUtil.GetPropertyName <AppraisalRuleDTO>(dto => dto.Id),
                PropertyUtil.GetPropertyName <AppraisalRuleDTO>(dto => dto.Conditions)
            });

            conditionSetEditor.View      = _appraisalRulesVM.CurrentRuleConditions;
            dataGridViewGoals.DataSource = new BindingListView <GoalDTO>(LoadedAsset.GetAllGoals().ToList());

            _wasModified = false;
        }