예제 #1
0
        private void PathSolution_Click(object sender, EventArgs e)
        {
            ICommand pCommand;

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

            pCommand = new ShortPathSolveCommand();
            pCommand.OnCreate(mainMapControl.Object);
            pCommand.OnClick();
            pCommand = null;
        }