コード例 #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            SeparatelyShouldRefreshEndpoints = new List <bool> {
                true, true, true
            };

            PointsAndStatsButton.SetTitle("Points & Stats");
            LeaderboardButton.SetTitle("Leaderboard");
            TransactionsButton.SetTitle("Transactions");
            PointsAndStatsButton.SetSelected();

            UIStoryboard board = UIStoryboard.FromName("Main", null);

            pageViewController = board.InstantiateViewController("PointsPageViewController") as UIPageViewController;
            pageSource         = new PointsPageViewControllerDataSource(this);

            pageViewController.DataSource = pageSource;

            var startVC         = this.ViewControllerAtIndex(1) as PointsBaseViewController; //start on second page for glitch (should start on page index 0 without glitch)
            var viewControllers = new UIViewController[] { startVC };

            pageViewController.SetViewControllers(viewControllers, UIPageViewControllerNavigationDirection.Forward, false, null);
            pageViewController.View.Frame = mainView.Bounds;
            AddChildViewController(this.pageViewController);
            mainView.AddSubview(this.pageViewController.View);
            pageViewController.DidMoveToParentViewController(this);

            CGRect frame = View.Frame;
        }
コード例 #2
0
        private void OPTextBox_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                TransactionsButton.PerformClick();

                OPTextBox.Focus();
                OPTextBox.Select(0, OPTextBox.TextLength);
            }
        }
コード例 #3
0
 public void ChangeSelectedButton(int page)
 {
     UpdateTabButtons();
     if (page == 0)
     {
         PointsAndStatsButton.SetSelected();
     }
     if (page == 1)
     {
         LeaderboardButton.SetSelected();
     }
     if (page == 2)
     {
         TransactionsButton.SetSelected();
     }
 }
コード例 #4
0
        void ReleaseDesignerOutlets()
        {
            if (AreaCollection != null)
            {
                AreaCollection.Dispose();
                AreaCollection = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (vVerticalScoreImageLine != null)
            {
                vVerticalScoreImageLine.Dispose();
                vVerticalScoreImageLine = null;
            }
        }
コード例 #5
0
        void ReleaseDesignerOutlets()
        {
            if (AreaCollection != null)
            {
                AreaCollection.Dispose();
                AreaCollection = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (vTriangleAlignment != null)
            {
                vTriangleAlignment.Dispose();
                vTriangleAlignment = null;
            }
        }
コード例 #6
0
        void ReleaseDesignerOutlets()
        {
            if (AreaCollection != null)
            {
                AreaCollection.Dispose();
                AreaCollection = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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