Пример #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);
        }