private void AutoStartWeather()
{
var stationName = AppContext.PersistentState.StationNameWeather;
var stationPassword = AppContext.PersistentState.StationPasswordWeather;
bool isValid = !String.IsNullOrEmpty(stationName) &&
!String.IsNullOrEmpty(stationPassword);
//MessageBox.Show(stationName + stationPassword);
// if (timerRapidFire.Enabled != isValid)
if (timerWU.Enabled != isValid)
{
if (isValid)
{
StartWeather();
this.pom_inverval_weather = 60 * 60; // aby to preslo cez casovac prvy krat
timerRapidFire_TickWU(null, null);
}
}
}