public static void AddInfoFunction(this IInfoProvider infoProvider, string name, InfoFunction func) { infoProvider.Functions.Add("info_" + name, (settings) => { return func(settings as InfoSettings); }); }
public override void Run() { IMap map = GIS.FrameWork.Application.App.Map; IMapFunction infoFunction = new InfoFunction(map); map.ActivateMapFunction(infoFunction); map.Refresh(); }
public static void AddInfoFunction(this IInfoProvider infoProvider, InfoFunction func) { infoProvider.AddInfoFunction("default", func); }