Inheritance: System.EventArgs
示例#1
0
        /// <summary>Raises the GridItems event</summary>
        /// <param name="e">A GridItemEventArgs object containing the
        /// data sent by simulator</param>
        protected virtual void OnGridItems(GridItemsEventArgs e)
        {
            EventHandler <GridItemsEventArgs> handler = m_GridItems;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
 /// <summary>Raises the GridItems event</summary>
 /// <param name="e">A GridItemEventArgs object containing the
 /// data sent by simulator</param>
 protected virtual void OnGridItems(GridItemsEventArgs e)
 {
     EventHandler<GridItemsEventArgs> handler = m_GridItems;
     if (handler != null)
         handler(this, e);
 }
示例#3
0
 void Grid_GridItems(object sender, GridItemsEventArgs e)
 {
     foreach (MapItem item in e.Items)
     {
         if (item is MapAgentLocation)
         {
             MapAgentLocation loc = (MapAgentLocation)item;
             lock (regionMapItems)
             {
                 if (!regionMapItems.ContainsKey(item.RegionHandle))
                 {
                     regionMapItems[loc.RegionHandle] = new List<MapItem>();
                 }
                 regionMapItems[loc.RegionHandle].Add(loc);
             }
             if (loc.AvatarCount > 0) needRepaint = true;
         }
     }
 }
示例#4
0
 public virtual void Grid_OnGridItems(object sender, GridItemsEventArgs e) { OnEvent("On-Grid-Items", paramNamesOnGridItems, paramTypesOnGridItems, e.Type, e.Items); }