示例#1
0
        private async void Bindable_Refreshing(object sender, EventArgs e)
        {
            Lista.IsRefreshing = true;

            Controle controle = new Controle();

            var item = await controle.BaixarFeed("http://new.d24am.com/rss?section=6");

            Lista.ItemsSource = item;

            Lista.IsRefreshing = false;
        }
        public async void Feed()
        {
            var check = CrossConnectivity.Current.IsConnected;

            if (check)
            {
                try
                {
                    var item = await controle.BaixarFeed("http://new.d24am.com/rss?section=6");

                    Lista = item;
                }
                catch (Exception)
                {
                    controle.MensagemInfo("Problemas com a conexão");
                }
            }
            else
            {
                controle.MensagemInfo("Seu dispositivo não está conectado à internet :(");
            }
        }
示例#3
0
        private async void Feed()
        {
            controle = new Controle();

            RssList = await controle.BaixarFeed("http://new.d24am.com/rss?section=3");
        }