void ReleaseDesignerOutlets() { if (ButtonDisplayPhotoList != null) { ButtonDisplayPhotoList.Dispose(); ButtonDisplayPhotoList = null; } if (TablePhotos != null) { TablePhotos.Dispose(); TablePhotos = null; } }
public async override void Awake(NSObject context) { base.Awake(context); SetTitle("Hello, watch!"); // Disable button until the photos are downloaded ButtonDisplayPhotoList.SetEnabled(false); // Get photos from the web service (first album only) photos = await PhotosClient.GetByAlbumId(1); // Create actions for the alert CreateAlertActions(); ButtonDisplayPhotoList.SetEnabled(true); }