protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Main); yrNoManager = new YrNoManager (); downloadAndPrintWeather (); //Set location text TextView locationTextView = FindViewById<TextView> (Resource.Id.locationTextView); locationTextView.Text = "Göteborg"; ImageButton yrNoImageButton = FindViewById<ImageButton> (Resource.Id.yrNoButton); yrNoImageButton.Touch += delegate { var uri = Android.Net.Uri.Parse ("http://www.yr.no/stad/Sverige/V%C3%A4stra%20G%C3%B6taland/G%C3%B6teborg/"); var intent = new Intent (Intent.ActionView, uri); StartActivity (intent); }; }
public BestWeatherEver_iOSViewController (IntPtr handle) : base (handle) { yrNoManager = new YrNoManager (); }
public void Setup() { yr = new YrNoManager (); }