Exemple #1
0
        private async void Load(string hrmlUrl)
        {
            List <ProgramTVModel> list = await ProgramTVParser.Parse(hrmlUrl);

            foreach (var i in list)
            {
                Items.Add(i);
            }
        }
Exemple #2
0
        private async void Load(string hrmlUrl)
        {
            await Windows.UI.Core.CoreWindow.GetForCurrentThread().Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async() =>
            {
                List <ProgramTVModel> list = await ProgramTVParser.Parse(hrmlUrl);

                foreach (var i in list)
                {
                    Items.Add(i);
                }
            });
        }