public BItem(string pId, BAuth pAuth, BItemType pItemType) { Id = pId; Properties = new Dictionary <string, PropertyDefnBase>(); Auth = pAuth; DefineProperties(new List <PropertyDefnBase>() { new PropertyDefn <BItemType>("_Type") { getter = () => { return(ItemType); } }, new PropertyDefn <string>("_Id") { getter = () => { return(Id); } }, new PropertyDefn <string>("_OwnerId") { getter = () => { return(OwnerId); } }, new PropertyDefn <BItemState>("_State") { getter = () => { return(State); } }, new PropertyDefn <string>("_Layer") { getter = () => { return(Layer); } }, }); BItem.AddItem(this); // TODO: Check if BItemsDeleted timer is running }
public DateTime WhenDeleted; // time this BItem was deleted (used in deleted list) public BItem(string pId, BAuth pAuth) : this(pId, pAuth, BItemType.UNKNOWN) { }