예제 #1
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        // Zostawiłem ta nazwę, bo jest cool.
        private void DawajDane(string url)
        {
            try
            {
                var rssParser = new RssParser(url);

                ListaWiadomosci = rssParser.GetMessages().ToList();
            }
            catch (Exception)
            {
                MessageBox.Show("Błąd w adresie xml-a. Zostanie wczytany rss gazeta.pl", "Poważny", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign, true);
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        // Zostawiłem ta nazwę, bo jest cool.
        private void DawajDane(string url)
        {
            try
            {
                var rssParser = new RssParser(url);

                ListaWiadomosci = rssParser.GetMessages().ToList();
            }
            catch (Exception)
            {
                MessageBox.Show("Błąd w adresie xml-a. Zostanie wczytany rss gazeta.pl", "Poważny", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign, true);
            }
        }