public void AddMacroHandler(GetMacroValueDelegate macroHandler) { if (macroHandler != null) { _map.GetMacroValue += macroHandler; } }