示例#1
0
        public void OnAssetDataLoaded()
        {
            conditionSetView                = new ConditionSetView();
            conditionSetEditor.View         = conditionSetView;
            conditionSetView.OnDataChanged += conditionSetView_OnDataChanged;
            actionRules.DataSource          = _loadedAsset.GetAllActionRules().ToList();

            dataGridViewReactiveActions.Columns[PropertyUtil.GetPropertyName <ActionRuleDTO>(dto => dto.Priority)].DisplayIndex = 3;

            EditorTools.HideColumns(dataGridViewReactiveActions, new[]
            {
                PropertyUtil.GetPropertyName <ActionRuleDTO>(d => d.Id)
            });

            if (actionRules.Any())
            {
                var ra = _loadedAsset.GetActionRule(actionRules.First().Id);
                UpdateConditions(ra);
            }
            EditorTools.UpdateFormTitle("Emotional Decision Making", _currentFilePath, this);
        }
示例#2
0
        protected override void OnAssetDataLoaded(EmotionalDecisionMakingAsset asset)
        {
            conditionSetView                = new ConditionSetView();
            conditionSetEditor.View         = conditionSetView;
            conditionSetView.OnDataChanged += conditionSetView_OnDataChanged;

            actionRules.DataSource = LoadedAsset.GetAllActionRules().ToList();

            dataGridViewReactiveActions.Columns[PropertyUtil.GetPropertyName <ActionRuleDTO>(dto => dto.Priority)].DisplayIndex = 3;

            EditorTools.HideColumns(dataGridViewReactiveActions, new[]
            {
                PropertyUtil.GetPropertyName <ActionRuleDTO>(d => d.Id),
                PropertyUtil.GetPropertyName <ActionRuleDTO>(d => d.Conditions)
            });


            if (actionRules.Any())
            {
                var ra = LoadedAsset.GetActionRule(actionRules.First().Id);
                UpdateConditions(ra);
            }
        }