Hook?
public interface IHook { /// <summary> /// 二维地图控件对象 /// </summary> ESRI.ArcGIS.Controls.IMapControl4 MapControl { get; set; } }
public class HookHelper: IHook { private static HookHelper mHookHelper = null; private HookHelper() { } public static HookHelper GetInstance() { if (mHookHelper == null) { mHookHelper = new HookHelper(); } return HookHelper; } public IEventAggregator EventAggregator { get; set; } public ESRI.ArcGIS.Controls.IMapControl4 MapControl { get; set; } public ESRI.ArcGIS.Carto.IMap Map { get; set; } }
从一个黑箱中有引n条线。
作者:太一吾鱼水
文章未经说明均属原创,学习笔记可能有大段的引用,一般会注明参考文献。
欢迎大家留言交流,转载请注明出处。