private void RefreshTimer_Tick(object sender, EventArgs e)
        {
            string            locale = txt_cityname.Text;
            WeatherAPIControl api    = new WeatherAPIControl(apiKey, ((string.IsNullOrEmpty(locale) ? locale : "Emmen")));

            api.Save();
            api.UpdateScreen(this);
        }
 private void loadOptions(bool reloadWeather)
 {
     if (txt_cityname.Text != "" && reloadWeather)
     {
         WeatherAPIControl api = new WeatherAPIControl(apiKey, txt_cityname.Text);
         api.Save();
         api.UpdateScreen(this);
     }
     if (numericUpDown1.Text != "" && numericUpDown1.Text != "0")
     {
         refreshTimer.Interval = (1000 * (Int32.Parse(numericUpDown1.Text)));
     }
     if (checkBox1.Checked)
     {
         refreshTimer.Enabled = true;
     }
     else if (!checkBox1.Checked)
     {
         refreshTimer.Enabled = false;
     }
 }