示例#1
0
        public VehicleGps(GpsRealTimeData rtData, string name, string sym, string source, string url, string desc, bool doTrackLog)
            : base(rtData.location.Clone(), name, sym, source, url, desc)                               // location must be not null
        {
            RealTimeData = rtData;
            m_doTrackLog = doTrackLog;

            if (m_doTrackLog)
            {
                logTrack(rtData);
            }

            if (m_image_nofix == null)
            {
                m_image_nofix = VehiclesCache.getVehicleImage("gps_nofix");
            }

            if (m_image_default == null)
            {
                m_image_default = VehiclesCache.getVehicleImage("gps_car_default");
            }

            setImage(sym);

            Image = m_imageSym;              //m_image_nofix;				// may be null

            imageBoundingRect();
        }
示例#2
0
 public void setImage(string sym)
 {
     m_imageSym = VehiclesCache.getVehicleImage(sym);                    // may be null
 }