private void ConstructorInit(PurgeType purgeType, InstrumentController instrumentController, List <GasEndPoint> gasEndPoints, InstrumentGasResponseEvent gasResponseEvent) { Log.Assert(instrumentController != null, "instrumentController cannot be null"); _instrumentController = instrumentController; _purgeType = purgeType; _returnGasResponseEvent = gasResponseEvent; // clone the supplied GasEndPoints foreach (GasEndPoint currentGasEndPoint in gasEndPoints) { GasEndPoint purgeGasEndPoint = (GasEndPoint)currentGasEndPoint.Clone(); GasEndPoints.Add(purgeGasEndPoint); } }
/// <summary> /// Creates a new instance of an InstrumentPurgeOperation class. /// </summary> public InstrumentPurgeOperation(PurgeType purgeType, InstrumentController instrumentController, List <GasEndPoint> gasEndPoints, InstrumentGasResponseEvent gasResponseEvent) { ConstructorInit(purgeType, instrumentController, gasEndPoints, gasResponseEvent); }
/// <summary> /// Creates a new instance of an InstrumentPurgeOperation class. /// </summary> public InstrumentPurgeOperation(PurgeType purgeType, InstrumentController instrumentController, List <GasEndPoint> gasEndPoints, InstrumentGasResponseEvent gasResponseEvent, List <SensorGasResponse> currentPassSGRList) { _currentPassSGRList = currentPassSGRList; ConstructorInit(purgeType, instrumentController, gasEndPoints, gasResponseEvent); }
private static string ToString(PurgeType type) { return("type=" + ((type == PurgeType.Arl) ? "arl" : "cpcode")); }