/// <summary> /// Occurs when this command is created /// </summary> /// <param name="hook">Instance of the application</param> public override void OnCreate(object hook) { if (hook == null) { return; } if (m_hookHelper == null) { m_hookHelper = new HookHelperClass(); } m_hookHelper.Hook = hook; //make sure that the usercontrol has been initialized if (null == m_graphicsLayerListCtrl) { m_graphicsLayerListCtrl = new GraphicsLayersListCtrl(); m_graphicsLayerListCtrl.CreateControl(); } //set the Map property of the control m_graphicsLayerListCtrl.Map = m_hookHelper.FocusMap; }
/// <summary> /// Occurs when this command is created /// </summary> /// <param name="hook">Instance of the application</param> public override void OnCreate(object hook) { if (hook == null) return; if (m_hookHelper == null) m_hookHelper = new HookHelperClass(); m_hookHelper.Hook = hook; //make sure that the usercontrol has been initialized if (null == m_graphicsLayerListCtrl) { m_graphicsLayerListCtrl = new GraphicsLayersListCtrl(); m_graphicsLayerListCtrl.CreateControl(); } //set the Map property of the control m_graphicsLayerListCtrl.Map = m_hookHelper.FocusMap; }