public InstrumentInfoList GetDCPowerInstrumentList() { InstrumentInfoList Result = new InstrumentInfoList(); foreach (InstrumentInfo tmpInstrumentInfo in this) { if (tmpInstrumentInfo.InstrumentTypeID == InstrumentType.DCPower || tmpInstrumentInfo.InstrumentTypeID == InstrumentType.DCPowerAnalyzer) { Result.Add(tmpInstrumentInfo); } } return(Result); }
public InstrumentInfoList GetInstrumentList(InstrumentType type) { InstrumentInfoList Result = new InstrumentInfoList(); foreach (InstrumentInfo tmpInstrumentInfo in this) { if (tmpInstrumentInfo.InstrumentTypeID == type) { Result.Add(tmpInstrumentInfo); } } return(Result); }
public InstrumentInfoList GetToDetectInstrumentList(InstrumentType[] inToDetectDeviceType) { InstrumentInfoList Result = new InstrumentInfoList(); foreach (InstrumentInfo tmpInstrumentInfo in this) { foreach (InstrumentType tmpInstrumentType in inToDetectDeviceType) { if (tmpInstrumentInfo.InstrumentTypeID == tmpInstrumentType) { Result.Add(tmpInstrumentInfo); break; } } } return(Result); }