public CurrentDriverState Clone()
        {
            CurrentDriverState clone = new CurrentDriverState();

            clone = (CurrentDriverState)this.MemberwiseClone();
            return(clone);
        }
Ejemplo n.º 2
0
        public CurrentTripState Clone()
        {
            CurrentTripState ts = new CurrentTripState();

            ts         = (CurrentTripState)this.MemberwiseClone();
            ts.Drivers = new List <CurrentDriverState>();
            for (int n = 0; n < this.Drivers.Count; n++)
            {
                CurrentDriverState cds = this.Drivers[n].Clone();
                ts.Drivers.Add(cds);
            }
            return(ts);
        }
Ejemplo n.º 3
0
        public void SetDefaults()
        {
            CurrentDriverState driver = new CurrentDriverState(true);

            this.Drivers.Add(driver);

            this.BluetoothId            = "testbluetoothid";
            this.CarrierUSDOTNumber     = "C123456789";
            this.CMVTrailerNumbers      = "AZ9876";
            this.CMVUnitNumber          = "CAR54";
            this.CurrentDriverId        = driver.DriverId;
            this.ShippingDocumentNumber = "MANIFEST123";
            this.VIN = "ABCD1234EFGH56789";
        }