コード例 #1
0
    private bool LoadItemElement(SecurityElement element, out SystemPropertyObject itemElement)
    {
        itemElement = new SystemPropertyObject();
        string attribute = element.Attribute("ID");

        if (attribute != null)
        {
            itemElement.ID = StrParser.ParseDecInt(attribute, 0);
        }

        attribute = element.Attribute("Conf_Name");
        if (attribute != null)
        {
            itemElement.Conf_Name = StrParser.ParseStr(attribute, "");
        }

        attribute = element.Attribute("Conf_Value");
        if (attribute != null)
        {
            itemElement.Conf_Value = StrParser.ParseDecInt(attribute, 0);
        }

        attribute = element.Attribute("Msg");
        if (attribute != null)
        {
            itemElement.Msg = StrParser.ParseStr(attribute, "");
        }

        return(true);
    }
コード例 #2
0
    public bool GetSystemPropertyObject(int ID, out SystemPropertyObject systemPropertyObject)
    {
        systemPropertyObject = null;

        if (!_mSystemPropertyObjectDic.TryGetValue(ID, out systemPropertyObject))
        {
            return(false);
        }
        return(true);
    }