private void PathSolution_Click(object sender, EventArgs e) { ICommand pCommand; pCommand = new ShortPathSolveCommand(); pCommand.OnCreate(axMapControl1.Object); pCommand.OnClick(); pCommand = null; }
//计算最短路径 private void buttonSolve_Click(object sender, EventArgs e) { mainMapControl.CurrentTool = null; ICommand pCommand; pCommand = new ShortPathSolveCommand(); pCommand.OnCreate(mainMapControl.Object); pCommand.OnClick(); pCommand = null; }