예제 #1
0
        private List <outputFormatExtList> makeVideoInfoList(ref Int32 counter)
        {
            List <outputFormatExtList> result = new List <outputFormatExtList>();

            videoDataStruct data = videoDataAry[counter % videoDataAry.Count()];

            outputFormatVideo p = new outputFormatVideo();

            p.componentType = new epgVideoComponentType(data.type);
            p.videoType     = new epgVideoType(data.name);
            result.Add(p);

            return(result);
        }
예제 #2
0
        private List <outputFormatExtList> makeVideoInfoListFromType(ref Int32 type)
        {
            List <outputFormatExtList> result = new List <outputFormatExtList>();

            int             t    = type;
            videoDataStruct data = videoDataAry[7];
            var             obj  = from v in videoDataAry
                                   where v.type == t
                                   select v;

            if (obj.Count() > 0)
            {
                data = obj.First();
            }

            outputFormatVideo p = new outputFormatVideo();

            p.componentType = new epgVideoComponentType(data.type);
            p.videoType     = new epgVideoType(data.name);
            result.Add(p);

            return(result);
        }