Beispiel #1
0
        // GET: Vehicles
        public ActionResult Index()
        {
            sqlconn.Open();
            List <Vehicle> vehicles = VehicleLogic.FindAll(sqlconn);

            sqlconn.Close();

            return(View(vehicles));
        }
Beispiel #2
0
        public void Refresh()
        {
            List <Vehicle> vehicles = VehicleLogic.FindAll(_sqlConn);

            cbVehicle.ItemsSource       = vehicles;
            cbVehicle.DisplayMemberPath = "Title";
            cbVehicle.SelectedValuePath = "Id";

            List <InspectionStation> stations = InspectionStationLogic.FindAll(_sqlConn);

            cbStation.ItemsSource       = stations;
            cbStation.DisplayMemberPath = "Company";
            cbStation.SelectedValuePath = "Id";
        }
Beispiel #3
0
        public void Refresh()
        {
            var vehicles = VehicleLogic.FindAll(_sqlConn);

            DgVehicles.ItemsSource = vehicles;
        }