Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 public static bool validateLocation(string location)
 {
     return(WeatherLookup.validCity(location));
 }