Beispiel #1
0
        public void PrimSrvAdd(string uuidstr, ushort start, ushort end)
        {
            string       name = ServiceNameByUUID(uuidstr);
            CPrimService mSrv = new CPrimService(uuidstr, name);

            mSrv.Start = start;
            mSrv.End   = end;
            m_PrimSrvList.Add(mSrv);
        }
Beispiel #2
0
        public CPrimService GetPrimSrv(string uuidstr)
        {
            CPrimService mSrv = null;

            foreach (CPrimService item in m_PrimSrvList)
            {
                if (uuidstr == item.UUID)
                {
                    mSrv = item;
                    break;
                }
            }
            return(mSrv);
        }