コード例 #1
0
ファイル: Form1.cs プロジェクト: Craigthomaskey/Clock
 private void WeatherUpdateTimer_Tick(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.Popups && NoteList.Count > 0)
     {
         Weth.DownloadWeather("Chicago"); BuildNotification(Weth.GetCityWeather(), 3600000, Weth.WeatherIcon());
     }
     else
     {
         WeatherUpdateTimer.Stop();
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Craigthomaskey/Clock
 private void showWeatherToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Weth.DownloadWeather("Chicago"); BuildNotification(Weth.GetCityWeather(), 3600000, Weth.WeatherIcon()); WeatherUpdateTimer.Start();
 }