Example #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());

            //   if(dynamicPropertyListing.TabPages.Count > 1)
            //    dynamicPropertyListing.TabPages.RemoveAt(1);

            _wasModified = false;
        }
Example #2
0
        private void OnAssetDataLoaded()
        {
            //Appraisal Rule
            _appraisalRulesVM = new AppraisalRulesVM(Asset);
            dataGridViewAppraisalRules.DataSource = _appraisalRulesVM.AppraisalRules;
            EditorTools.HideColumns(dataGridViewAppraisalRules, new[]
            {
                PropertyUtil.GetPropertyName <AppraisalRuleDTO>(dto => dto.Id)
            });

            conditionSetEditor.View = _appraisalRulesVM.CurrentRuleConditions;

            EditorTools.UpdateFormTitle("Emotional Appraisal", _currentFilePath, this);
        }