public MainWindow() { nextMode = Program.WindowMode.Terminate; settingsOpen = false; InitializeComponent(); this.pnl_Settings.Enabled = false; this.pnl_Settings.Visible = false; this.Width = normalWindowWidth; this.Invalidate(); alertDisplay = new List <Label>(); removeAlertCheckBxs = new List <CheckBox>(); removeSaveButton(); removeAlertAddControls(); if (WeatherLookup.update()) { updateDisplay(); } else { openSettingsPane(); } }
public static bool validateLocation(string location) { return(WeatherLookup.validCity(location)); }