Beispiel #1
0
        public CmmbStreamSource2(int channelIdx, Engine engine)
        {
            Utility.Trace(String.Format("CmmbStreamSource channel is {0}", channelIdx));

            curChannelIdx = channelIdx;
            _engine = engine;
            m_MUXprovider = _engine.GetCmmbProvider;
            m_MUXprovider.ChannelID = channelIdx;
            m_MUXprovider.StartToProvide();
            m_MUXSourceQueue = _engine.GetCmmbStreamQueue;

            // Init the worker thread
            m_ParserThread = new Thread(ParserThreadRun);
            m_ParserThread.Start();

            m_ParserThread.Name = "Parser_Thread " + threadid++.ToString();

            Utility.Trace("Parser_Thread started! " + m_ParserThread.Name);
        }
Beispiel #2
0
        public UIDataModel(Engine e)
        {
            _engine = e;
            _dbEngine = e.GetDBEngine;

            this.DC_AllChannels = new ObservableCollection<DataModel_Channel>();
            this.ServiceExtCollection = new ObservableCollection<DataModel_ChannelExt>();
            this.DC_ProgramLst = new ObservableCollection<DataModel_Program>();
            this.DC_Favorite = new ObservableCollection<DataModel_Channel>();

            SaveTestDataToDB();
        }