private void HandleOnSelectedEntitiesChanged(object sender, EventArgs e) { Map map = (Map)sender; EntityControl.SetEntities(map.GetSelectedEntities()); }