Ejemplo n.º 1
0
        ///<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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
 private void Store_OnInventoryObjectUpdated(object sender, InventoryObjectUpdatedEventArgs e)
 {
     Enqueue(() =>LoadItemOrFolder(e.NewObject));
 }
Ejemplo n.º 4
0
        ///<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);
        }
Ejemplo n.º 5
0
 ///<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);
 }
Ejemplo n.º 6
0
        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);
            }
        }