Exemple #1
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();
        }
Exemple #2
0
        public void Initialize()
        {
            //1. initialize the database,
            _dbEngine = new DBEngine();

            //2. init the MBBMS
            // MBBMSEngine.init();

            //3. init the main view data model
            _uiDataModel = new UIDataModel(this);

            // 4.init the cmmb demux
            //StreamResourceInfo streaminfo = Application.GetResourceStream(new Uri("Resources/cmmb.mfs", UriKind.Relative));
            //var cmmb_stream = streaminfo.Stream;
            //_demux = new CmmbDemux(streaminfo.Stream);
            //cmmb_stream.Close();

            //5. init cmmb stream provider
            _cmmbStreamQueue = new WorkQueue();
            _provider = new MUXProvider(_cmmbStreamQueue);
        }