Beispiel #1
0
        public AssignBusViewModel()
        {
            // Retrieve bus and route service
            routeService = (App.Current as App).Container.GetService <IRouteService>();
            busService   = (App.Current as App).Container.GetService <IBusService>();

            AssignBusCommand = new RelayCommand(() =>
            {
                routeService.AssignBusToRoute(SelectedBus);
            });
        }