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(); } }
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(); } }
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(); }
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(); }