void Inventory_InventoryObjectRemoved(object sender, InventoryObjectRemovedEventArgs e) { if (InvokeRequired) { BeginInvoke(new MethodInvoker(() => Inventory_InventoryObjectRemoved(sender, e))); return; } lock (attachments) { if (attachments.ContainsKey(e.Obj.UUID)) { attachments.Remove(e.Obj.UUID); } } TreeNode currentNode = findNodeForItem(e.Obj.UUID); if (currentNode != null) { removeNode(currentNode); } }
private void Store_OnInventoryObjectRemoved(object sender, InventoryObjectRemovedEventArgs e) { // throw new NotImplementedException(); }
///<summary>Raises the InventoryObjectRemoved Event</summary> /// <param name="e">A InventoryObjectRemovedEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnInventoryObjectRemoved(InventoryObjectRemovedEventArgs e) { EventHandler<InventoryObjectRemovedEventArgs> handler = m_InventoryObjectRemoved; if (handler != null) handler(this, e); }
private void Store_OnInventoryObjectRemoved(object sender, InventoryObjectRemovedEventArgs e) { //nodecol = false; //RefreshInventory(); UUID fldr = e.Obj.UUID; InventoryBase io = (InventoryBase)e.Obj; if (io is InventoryFolder) { // do nothing } else { if (e.Obj.ParentUUID != UUID.Zero) { fldr = e.Obj.ParentUUID; } } //WorkPool.QueueUserWorkItem(new WaitCallback(UpdateFolder), fldr); client.Inventory.FolderUpdated -= new EventHandler<FolderUpdatedEventArgs>(Inventory_OnFolderUpdated); UpdateFolder(fldr); client.Inventory.FolderUpdated += new EventHandler<FolderUpdatedEventArgs>(Inventory_OnFolderUpdated); }
///<summary>Raises the InventoryObjectRemoved Event</summary> /// <param name="e">A InventoryObjectRemovedEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnInventoryObjectRemoved(InventoryObjectRemovedEventArgs e) { EventHandler <InventoryObjectRemovedEventArgs> handler = m_InventoryObjectRemoved; handler?.Invoke(this, e); }
void Inventory_InventoryObjectRemoved(object sender, InventoryObjectRemovedEventArgs e) { lock (attachments) { if (attachments.ContainsKey(e.Obj.UUID)) { attachments.Remove(e.Obj.UUID); } } }