示例#1
0
        /*
         * public GraphCreator()
         * {
         *  //points = new System.Collections.ArrayList();
         *  points = Status.Points;
         *  //edges = Status.
         *  this.g = this.CreateGraphics();
         *  InitializeComponent();
         *
         *  Status.myPoints.PointAdded += new PointHandler(myPoints_PointAdded);
         *  Status.myPoints.PointDeleted += new PointHandler(myPoints_PointDeleted);
         *  Status.myRoutes.RouteAdded += new RouteHandler(myRoutes_RouteAdded);
         * }*/

        void myRoutes_RouteAdded(object sender, RoutesEventArgs e)
        {
            Console.WriteLine("GraphCreator должен нарисовать новый маршрут {0}", e.route);
        }
示例#2
0
 protected virtual void OnRouteAdded(RoutesEventArgs e)
 {
     RouteAdded(this, e);
 }