Esempio n. 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            _zipCode = FindViewById<TextView>(Resource.Id.ZipCode);
            _temperature = FindViewById<TextView>(Resource.Id.Temperature);
            _conditions = FindViewById<TextView>(Resource.Id.Conditions);

            _weatherService = new WeatherService();

            FindViewById<Button>(Resource.Id.CheckWeather).Click += checkWeather;
        }
Esempio n. 2
0
        public MainPage()
        {
            InitializeComponent();

            _weatherService = new WeatherService();
        }
 public IOSWeatherAppViewController()
     : base("IOSWeatherAppViewController", null)
 {
     _weatherService = new WeatherService ();
 }