Example #1
0
        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);
        }
Example #2
0
        public InstrumentInfoList GetInstrumentList(InstrumentType type)
        {
            InstrumentInfoList Result = new InstrumentInfoList();

            foreach (InstrumentInfo tmpInstrumentInfo in this)
            {
                if (tmpInstrumentInfo.InstrumentTypeID == type)
                {
                    Result.Add(tmpInstrumentInfo);
                }
            }
            return(Result);
        }
Example #3
0
        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);
        }