///<summary>Raises the InventoryObjectUpdated Event</summary> /// <param name="e">A InventoryObjectUpdatedEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnInventoryObjectUpdated(InventoryObjectUpdatedEventArgs e) { EventHandler <InventoryObjectUpdatedEventArgs> handler = m_InventoryObjectUpdated; if (handler != null) { handler(this, e); } }
void Inventory_InventoryObjectUpdated(object sender, InventoryObjectUpdatedEventArgs e) { if (TreeUpdateInProgress) { lock (ItemsToUpdate) { if (e.NewObject is InventoryFolder) { TreeNode currentNode = findNodeForItem(e.NewObject.UUID); if (currentNode != null && currentNode.Text == e.NewObject.Name) return; } if (!ItemsToUpdate.Contains(e.NewObject)) { ItemsToUpdate.Enqueue(e.NewObject); } } } else { Exec_OnInventoryObjectUpdated(e.OldObject, e.NewObject); } }
private void Store_OnInventoryObjectUpdated(object sender, InventoryObjectUpdatedEventArgs e) { Enqueue(() =>LoadItemOrFolder(e.NewObject)); }
///<summary>Raises the InventoryObjectUpdated Event</summary> /// <param name="e">A InventoryObjectUpdatedEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnInventoryObjectUpdated(InventoryObjectUpdatedEventArgs e) { EventHandler <InventoryObjectUpdatedEventArgs> handler = m_InventoryObjectUpdated; handler?.Invoke(this, e); }
///<summary>Raises the InventoryObjectUpdated Event</summary> /// <param name="e">A InventoryObjectUpdatedEventArgs object containing /// the data sent from the simulator</param> protected virtual void OnInventoryObjectUpdated(InventoryObjectUpdatedEventArgs e) { EventHandler<InventoryObjectUpdatedEventArgs> handler = m_InventoryObjectUpdated; if (handler != null) handler(this, e); }
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); } }