private void fireMapAdded(string displayName) { if (mapAdded != null) { MapAddedEventArgs e = new MapAddedEventArgs(); int i = getMapIndex(displayName); Map m = maps[i]; e.map = m.displayName; e.index = i; mapAdded(this, e); } }
private void mapControl_mapAdded(object sender, MapAddedEventArgs e) { mapSelector.Items.Add(e.map); }