/// <summary> /// Copies the sensor to a destination component. /// </summary> /// <param name="component">The destination component.</param> public override void CopyTo(Component component) { base.CopyTo(component); Sensor sensor = (Sensor)component; //////////////////////////////////////////////////////////////// // NOTE: IF ANY FIELDS ARE ADDED HERE THAT CAN ARE CONSIDERED // 'SETTINGS' THAT CAN BE MODIFIED BY THE USER, THEN BE SURE TO // ALSO ADD THE FIELDS TO CopySettings FUNCTION FARTHER BELOW //////////////////////////////////////////////////////////////// sensor.Alarm = ( SensorAlarm )Alarm.Clone(); sensor.CalibrationGasConcentration = CalibrationGasConcentration; sensor.CalibrationGas = CalibrationGas; sensor.CalibrationTimeout = CalibrationTimeout; sensor.DeadBand = DeadBand; sensor.Filter = Filter; sensor.OverRange = OverRange; sensor.Polarity = Polarity; sensor.Resolution = Resolution; sensor.SetupDate = SetupDate; sensor.Span = Span; sensor.SpanCoef = SpanCoef; sensor.SpanCoefMax = SpanCoefMax; sensor.SpanCoefMin = SpanCoefMin; sensor.TemperatureCompHigh = TemperatureCompHigh; sensor.TemperatureCompLow = TemperatureCompLow; sensor.ZeroMax = ZeroMax; sensor.ZeroMin = ZeroMin; sensor.ZeroOffset = ZeroOffset; sensor.PeakReading = PeakReading; sensor.MaxTemperature = MaxTemperature; sensor.MinTemperature = MinTemperature; sensor.GasDetected = GasDetected; sensor.CalibrationStatus = CalibrationStatus; sensor.BumpTestStatus = BumpTestStatus; sensor.IsDualSenseCapable = IsDualSenseCapable; // sensor.GasFactor = (ResponseFactor)this.GasFactor.Clone(); }