Exemplo n.º 1
0
 public NodeSelector(int ordernum, ObservableCollection <string> nodes, RoutePlannerVM rpvm)
 {
     this.InitializeComponent();
     this._rpvm      = rpvm;
     NodeCollection  = nodes;
     _orderNumber    = ordernum;
     this._labelText = ((ordernum.ToString() == "0") ? "Start" : $"Goal {ordernum}");
 }
Exemplo n.º 2
0
        //public string SavePath;

        public RoutePlanner(Graph graph)
        {
            this.InitializeComponent();
            this._rpvm       = new RoutePlannerVM(graph, this.AllPossibleRoutesTextBlock, this.RadioButtonAllRoutes, this.RadioButtonShortestRoute, this.ShortestRouteCanvas);
            this.DataContext = this._rpvm;
        }