Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonDisplayPhotoList != null)
            {
                ButtonDisplayPhotoList.Dispose();
                ButtonDisplayPhotoList = null;
            }

            if (TablePhotos != null)
            {
                TablePhotos.Dispose();
                TablePhotos = null;
            }
        }
Exemple #2
0
        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);
        }