Esempio n. 1
0
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         RssSourceApi xml = new RssSourceApi();
         xml.Add(textBox1.Text);
         this.Close();
     }
     if (e.KeyChar == (char)Keys.Escape)
     {
         this.Close();
     }
 }
Esempio n. 2
0
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)Keys.Enter)
     {
         RssSourceApi xml = new RssSourceApi();
         xml.Add(textBox1.Text);
         this.Close();
     }
     if (e.KeyChar == (char)Keys.Escape)
     {
         this.Close();
     }
 }
Esempio n. 3
0
        public Form1()
        {
            InitializeComponent();

            this.rssSourceApi = new RssSourceApi();

            rssSourceApi.CreateFile();

            sourceUrlList = rssSourceApi.Read();

            this.FillContextMenuStripWithRssSource();

            timer1.Start();

            this.MAX_ADRESY_RSS = sourceUrlList.Count;

            this.DawajDane(sourceUrlList.ElementAt(GetNextRssNumber()));

            this.FillWeatherLabels();

            this.StartMoveingTextBar();
        }
Esempio n. 4
0
        public Form1()
        {
            InitializeComponent();

            this.rssSourceApi = new RssSourceApi();

            rssSourceApi.CreateFile();

            sourceUrlList = rssSourceApi.Read();

            this.FillContextMenuStripWithRssSource();

            timer1.Start();

            this.MAX_ADRESY_RSS = sourceUrlList.Count;

            this.DawajDane(sourceUrlList.ElementAt(GetNextRssNumber()));

            this.FillWeatherLabels();

            this.StartMoveingTextBar();
        }