예제 #1
0
파일: Form2.cs 프로젝트: przemekwa/pogoda
 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();
     }
 }
예제 #2
0
파일: Form2.cs 프로젝트: przemekwa/pogoda
 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();
     }
 }
예제 #3
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        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();
        }
예제 #4
0
파일: Form1.cs 프로젝트: przemekwa/pogoda
        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();
        }