private void Store_InventoryObjectUpdated(object sender, InventoryObjectUpdatedEventArgs e) { var gesture = e.NewObject as InventoryGesture; if (gesture == null) { return; } UpdateInventoryGesture(gesture); }
void Inventory_InventoryObjectUpdated(object sender, InventoryObjectUpdatedEventArgs e) { if (false) { lock (ItemsToUpdate) { if (!ItemsToUpdate.Contains(e.NewObject)) { ItemsToUpdate.Enqueue(e.NewObject); } } } else { Exec_OnInventoryObjectUpdated(e.OldObject, e.NewObject); } }