コード例 #1
0
    private void SaveXmlValue(string name, string parentNodeName, NodeType nodeType, string description, string databaseFieldName)
    {
        string level1Name = name;
        string level2Name = null;

        if (parentNodeName != null)
        {
            level1Name = parentNodeName;
            level2Name = name;
        }

        string level1Type = ExtendedPropertiesHelper.GetLevel1Type(nodeType);
        string level2Type = ExtendedPropertiesHelper.GetLevel2Type(nodeType);

        if (level2Type == "")
        {
            level2Name = "";
        }

        if (_objectsSelectorForm.allCheckBox.Checked || (!_objectsSelectorForm.allCheckBox.Checked && _selectedDatabaseFieldNames.Contains(databaseFieldName)))
        {
            if (_objectsSelectorForm.IncludeObjectType(level1Type, level2Type))
            {
                if (_objectsSelectorForm.IncludeIndividualObject(level1Type, level1Name))
                {
                    _databaseOperation.SaveDescription(level1Type, level1Name, level2Type, level2Name, description, databaseFieldName);
                }
            }
        }
    }
コード例 #2
0
    public static string GetCheckWrapper(CustomNode node, string sqlToWrap)
    {
        string level1Type = ExtendedPropertiesHelper.GetLevel1Type(node.Type);
        string level1Name = ExtendedPropertiesHelper.GetLevel1Name(node);

        string level2Type = ExtendedPropertiesHelper.GetLevel2Type(node.Type);
        string level2Name = ExtendedPropertiesHelper.GetLevel2Name(node);

        return(GetCheckWrapper(level1Type, level1Name, level2Type, level2Name, sqlToWrap));
    }