示例#1
0
 private void FindRoute()
 {
     Route route = new Route(Address);
     setDeliveryBoy();
     printShortestRoute(new NearestNeighbour(this).FindShortestRoute(Address));
     RouteTimer.Stop();
     Timer.Stop();
 }
示例#2
0
 private void button3_Click(object sender, EventArgs e)
 {
     Address = new ArrayList();
     Input.Text = null;
     output.Text = null;
     Distance.Text = null;
     Cost.Text = null;
     Time.Text = null;
     DBoy.Text = null;
     interval = 0;
     Timer.Stop();
     second.Text = "0";
     RouteTimer.Stop();
 }
示例#3
0
 private void button8_Click(object sender, EventArgs e)
 {
     Timer.Stop();
     RouteTimer.Stop();
 }