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