예제 #1
0
        private void OnVertexNeighbors(object sender, RoutedEventArgs args)
        {
            args.Handled = true;

            // toggle vertex neighbors without changing node costs
            bool vertexNeighbors = (bool)VertexNeighbors.IsChecked;

            if (_manager.SetVertexNeighbors(vertexNeighbors))
            {
                ShowAlgorithm(false);
            }
        }