Esempio n. 1
0
 private static ExtendedPropertiesStruct GetProps(ItemObject item)
 {
     if (!ExtendedProperties.ContainsKey(item))
     {
         ExtendedProperties[item] = ExtendedPropertiesStruct.CreateDefault();
     }
     return(ExtendedProperties[item]);
 }
Esempio n. 2
0
 private static void SetProps(ItemObject item, ExtendedPropertiesStruct props)
 {
     ExtendedProperties[item] = props;
 }
Esempio n. 3
0
        public static void SetQuantity(this ItemObject item, int amount)
        {
            ExtendedPropertiesStruct props = GetProps(item);

            props.Quantity = amount;
        }