Пример #1
0
 private void SelectStory(List <Story> stories, Story story)
 {
     if (stories != null)
     {
         var index = stories.IndexOf(story);
         var path  = NSIndexPath.FromRowSection((System.nint)index, 0);
         StoriesTable.SelectRow(path, true, UITableViewScrollPosition.Top);
     }
 }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (HeightTest1 != null)
            {
                HeightTest1.Dispose();
                HeightTest1 = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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