Beispiel #1
0
        public VehicleImage Find(string VehicleId)
        {
            _vehicleid = VehicleId;
            VehicleImage vehicleimage = new VehicleImage(_userid, _vehicleid);
            int          i            = 0;

            if (_instance == null)
            {
                _instance = new VehicleImages();
                Load(_userid, _vehicleid);
            }
            else
            {
                _instance.ClearItems();
            }
            Load(_userid, _vehicleid);
            while (i < _instance.Count)
            {
                if (_instance.Items[i].VehicleID == _vehicleid.TrimEnd().TrimStart())
                {
                    vehicleimage = _instance.Items[i];
                    break;
                }
                i += 1;
            }



            return(vehicleimage);
        }
Beispiel #2
0
 public VehicleImages List()
 {
     if (_instance == null)
     {
         _instance = new VehicleImages(this.UserId, this.VehicleID);
     }
     Load(_userid, _vehicleid);
     return(_instance);
 }