Exemple #1
0
 private void Uptimer_Tick(object sender, EventArgs e)
 {
     if (upValue > this.Size.Height)
     {
         Uptimer.Stop();
         isFormUp = true;
     }
     else
     {
         this.Location = new Point(SystemInformation.WorkingArea.Width - this.Size.Width,
                                   SystemInformation.WorkingArea.Height - upValue);
         upValue += 4;
     }
 }
Exemple #2
0
 private void Show_Load(object sender, EventArgs e)
 {
     try
     {
         cityList = cityDict.Keys.ToList();
         Thread getInfo = new Thread(new ThreadStart(GetWeatherInfo));
         getInfo.Start();
         HideAllControls();
         Uptimer.Start();
         timerLoad.Start();
     }
     catch
     {
         //this.Close();
         this.Dispose();
     }
 }