コード例 #1
0
 public Attribute(AttributeID id, string name, string dName, string desc, Unit unit, AttributeCategory cat)
 {
     ID            = id;
     AttributeName = name;
     DisplayName   = dName;
     Description   = desc;
     Unit          = unit;
     Category      = cat;
 }
コード例 #2
0
        public override string Format(object input)
        {
            var attrID = new AttributeID(input.ToInt());

            return(CommonQueries.GetAttributeName(attrID));
        }
コード例 #3
0
        public static string GetAttributeName(AttributeID attrID)
        {
            var query = @"select displayName from dgmAttributeTypes where attributeID = " + attrID + ";";

            return(DefaultDatabase.RunSQLStringQuery(query));
        }