コード例 #1
0
        public List<tblVehicle> ChooseTypeOfSearch(List<tblVehicle> vehicleSearchList)
        {
            // create instance of dbreader class to read vehicles to search.
            if (!AppSettings.manualSingleSearchMode) {
                // Multiple search
                var dbReader = new DBreader();
                vehicleSearchList = dbReader.readSearchVehicles();

            } else {
                //Single Search
                var dbReader = new DBreader();
                vehicleSearchList = dbReader.GetSingleSearchVehicle(AppSettings.singleSearchVehicleModel);

            }

            return vehicleSearchList;
        }