/// <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); } }
/// <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); }
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; } } }
public virtual void Grid_OnGridItems(object sender, GridItemsEventArgs e) { OnEvent("On-Grid-Items", paramNamesOnGridItems, paramTypesOnGridItems, e.Type, e.Items); }