예제 #1
0
        private string writeObjectDetails(BaseObjectTypes trimType, long uri, Database db)
        {
            ObjectDef      objDef = new ObjectDef(trimType, db);
            TrimMainObject obj    = db.FindTrimObjectByUri(trimType, uri);

            if (obj != null)
            {
                return(string.Format("Event object {0} ({1}) of type {2}.", obj.NameString, obj.NameStringExtra, objDef.Caption));
            }
            else
            {
                return(string.Format("Missing object for Uri: {0} of type {1}.", uri, objDef.Caption));
            }
        }
예제 #2
0
 public BaseObject(BaseObjectTypes objectType)
 {
     this.ObjectType = objectType;
     this.Id         = ++Owner.Instance.GlobalIdentifiers[objectType.GetHashCode()][0];
     this.Name       = this.ObjectType.ToString() + this.Id;
 }