Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            _UpdateTimer           = new Timer(60000);
            _UpdateTimer.Elapsed  += _UpdateTimer_Elapsed;
            _UpdateTimer.AutoReset = true;
            _UpdateTimer.Enabled   = true;

            _NOAAClient         = new NOAAClient();
            _MetNoClient        = new MetNoClient();
            _PollenClient       = new PollenClient();
            _OptionsService     = new OptionsService();
            _ApplicationOptions = _OptionsService.LoadSavedOptions();
            _GeographyService   = new GeographyService();
            _WeatherIconService = new WeatherIconService();

            if (_ApplicationOptions.SelectedZip != null)
            {
                ZipTextBox.Text = _ApplicationOptions.SelectedZip.Zip.ToString();
            }

            ErrorHelper.ErrorLabel = ErrorText;
            ErrorHelper.EmitError("Errors will appear here.");

            GetWeatherForecast();
            UpdatePollenForecast();
        }
Ejemplo n.º 2
0
 public MetNoClientTests()
 {
     _SUT = new MetNoClient();
 }