private void OnMapLayerRendered(Graphics g, ILayer layer) { foreach (var tool in tools.Where(tool => tool.IsActive)) { tool.OnMapLayerRendered(g, layer); } }