示例#1
0
        /// <summary>
        /// Automatically generated by Visual Studio.
        /// Wires up the UI components, adds a
        /// <see cref="GraphControl"/> to the form,
        /// and displays settings for the config of the edgeRouter.
        /// </summary>
        public MazeRoutingWindow()
        {
            InitializeComponent();

            // initialise a new config
            edgeRouterConfig = new PolylineEdgeRouterCustomConfig();

            // display the config in the UI
            Editor.Configuration = edgeRouterConfig;
        }
示例#2
0
 /// <summary>
 /// Reset the settings by creating a new PolylineEdgeRouterCustomConfig object and assigning it newly
 /// </summary>
 private async void ResetButtonClick(object sender, RoutedEventArgs e)
 {
     edgeRouterConfig     = new PolylineEdgeRouterCustomConfig();
     Editor.Configuration = edgeRouterConfig;
     await RouteAllEdges();
 }