/// <summary> /// 执行工具命令 /// </summary> public void RunCommond() { if (mapLogic.GetLayer(layerName) == null) { mapLogic.AddLayer(layerName); } lineName += Utils.ElementIndex.ToString();//图元名称 gmapControl.MouseDown += gmapControl_MouseDown; gmapControl.MouseMove += gmapControl_MouseMove; gmapControl.KeyDown += new KeyEventHandler(gmapControl_KeyDown); }