Esempio n. 1
0
        ///<summary>Raises the InventoryObjectAdded Event</summary>
        /// <param name="e">A InventoryObjectAddedEventArgs object containing
        /// the data sent from the simulator</param>
        protected virtual void OnInventoryObjectAdded(InventoryObjectAddedEventArgs e)
        {
            EventHandler <InventoryObjectAddedEventArgs> handler = m_InventoryObjectAdded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 void Inventory_InventoryObjectAdded(object sender, InventoryObjectAddedEventArgs e)
 {
     if (TreeUpdateInProgress)
     {
         lock (ItemsToAdd)
         {
             ItemsToAdd.Enqueue(e.Obj);
         }
     }
     else
     {
         Exec_OnInventoryObjectAdded(e.Obj);
     }
 }
Esempio n. 3
0
        void Inventory_InventoryObjectAdded(object sender, InventoryObjectAddedEventArgs e)
        {
            if (e.Obj is InventoryFolder && ((InventoryFolder)e.Obj).PreferredType == AssetType.TrashFolder)
            {
                trashCreated.Set();
            }

            if (TreeUpdateInProgress)
            {
                lock (ItemsToAdd)
                {
                    ItemsToAdd.Enqueue(e.Obj);
                }
            }
            else
            {
                Exec_OnInventoryObjectAdded(e.Obj);
            }
        }
Esempio n. 4
0
 private void Store_OnInventoryObjectAdded(object sender, InventoryObjectAddedEventArgs e)
 {
     Enqueue(() =>LoadItemOrFolder(e.Obj));
 }
Esempio n. 5
0
        ///<summary>Raises the InventoryObjectAdded Event</summary>
        /// <param name="e">A InventoryObjectAddedEventArgs object containing
        /// the data sent from the simulator</param>
        protected virtual void OnInventoryObjectAdded(InventoryObjectAddedEventArgs e)
        {
            EventHandler <InventoryObjectAddedEventArgs> handler = m_InventoryObjectAdded;

            handler?.Invoke(this, e);
        }
Esempio n. 6
0
 ///<summary>Raises the InventoryObjectAdded Event</summary>
 /// <param name="e">A InventoryObjectAddedEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnInventoryObjectAdded(InventoryObjectAddedEventArgs e)
 {
     EventHandler<InventoryObjectAddedEventArgs> handler = m_InventoryObjectAdded;
     if (handler != null)
         handler(this, e);
 }
Esempio n. 7
0
 void Inventory_InventoryObjectAdded(object sender, InventoryObjectAddedEventArgs e)
 {
     if (false)
     {
         lock (ItemsToAdd)
         {
             ItemsToAdd.Enqueue(e.Obj);
         }
     }
     else
     {
         Exec_OnInventoryObjectAdded(e.Obj);
     }
 }