Beispiel #1
0
        public void PopulateData(ContentType contentType = ContentType.FirstLoad)
        {
            if (chosenContentType == contentType && chosenContentType != ContentType.FirstLoad)
            {
                return;
            }

            chosenContentType = contentType;

            switch (contentType)
            {
            case ContentType.Bydgoszcz1945:
                ItemsList = ContentServices.Bydgoszcz1945Photos;
                break;

            case ContentType.MarianRejewski:
                ItemsList = ContentServices.MarianRejewskiPhotos;
                break;

            default:
                ItemsList = ContentServices.Bydgoszcz1920Photos;
                break;
            }

            TableViewPhotoItems.Source = new PhotoItemsTableViewSource(this);
            TableViewPhotoItems.ReloadData();

            var indexPath = NSIndexPath.FromItemSection(0, 0);

            TableViewPhotoItems.ScrollToRow(indexPath, UITableViewScrollPosition.Top, true);
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (ImageViewZooming != null)
            {
                ImageViewZooming.Dispose();
                ImageViewZooming = null;
            }

            if (ScrollViewImageZooming != null)
            {
                ScrollViewImageZooming.Dispose();
                ScrollViewImageZooming = null;
            }

            if (TableViewPhotoItems != null)
            {
                TableViewPhotoItems.Dispose();
                TableViewPhotoItems = null;
            }

            if (ViewOverlay != null)
            {
                ViewOverlay.Dispose();
                ViewOverlay = null;
            }
        }