Ejemplo n.º 1
0
        private void InitializeForm()
        {
            if (_nameStringFormGroup == null)
            {
                _nameStringFormGroup = new StringFormGroup(
                    "*Name:",
                    "Specify a name for the group.",
                    OldGroup?.name,
                    RuleDao.Instance.GetAllGroupNames
                    );
            }

            if (_keyStringFormGroup == null)
            {
                _keyStringFormGroup = new StringFormGroup(
                    "*Key:",
                    "Specify a unique key for the group.",
                    OldGroup?.key,
                    RuleDao.Instance.GetAllGroupKeys
                    );
            }

            if (_scopeEnumFormGroup == null)
            {
                _scopeEnumFormGroup = new EnumFormGroup <DataScope>(
                    "Scope:",
                    "Select if this group should be available just for this or for all projects."
                    );
            }
        }
Ejemplo n.º 2
0
        private void InitializeForm()
        {
            _keyStringFormGroup = new StringFormGroup(
                "*Key:",
                "Specify a unique key for the rule.",
                OldRule?.key,
                NonAllowedRuleDescriptions
                );

            _descriptionStringFormGroup = new StringFormGroup(
                "*Description:",
                "The description is used in the rule selection and in the report.",
                OldRule?.description,
                NonAllowedRuleKeys
                );

            _groupDropdownFormGroup = new DropdownFormGroup(
                "Group:",
                "Select to which group this rule should belong.",
                RuleDao.Instance.GetAvailableGroups(),
                OldGroup?.name
                );

            _ruleTypeFormGroup = new EnumFormGroup <RuleType>(
                "Type:",
                "Select if this rule is a constraint or a concept."
                );

            _cypherQueryTextAreaFormGroup = new TextAreaFormGroup(
                "*Cypher Query:",
                "Enter the Cypher query for your rule.",
                OldRule?.cypherQuery
                );
        }