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

            CongratsTitle.Text = StringResources.debriefing_congrats_title;
            CongratsBody.Text  = string.Format(StringResources.debriefing_congrats_body, Config.PRINT_URL);

            ConsentTitle.Text = StringResources.debriefing_consent_title;
            ConsentBody1.Text = StringResources.debriefing_consent_body1;
            ConsentBody2.Text = StringResources.debriefing_consent_body2;
            ConsentBody3.Text = StringResources.debriefing_consent_body3;

            FinishedButton.SetTitle(StringResources.debriefing_finish_button, UIControlState.Normal);
            FinishedButton.Layer.BorderWidth = 1.0f;
            FinishedButton.Layer.BorderColor = Application.MainColour;

            FinishedButton.TouchUpInside += FinishedButton_TouchUpInside;

            // Removes the title from the previous (Sessions) view controller as it is too long.
            NavigationController.NavigationBar.TopItem.Title = "";
        }
コード例 #2
0
 public void SubmitAro()
 {
     FinishedButton.Click();
 }
コード例 #3
0
        void ReleaseDesignerOutlets()
        {
            if (FinishedButton != null)
            {
                FinishedButton.Dispose();
                FinishedButton = null;
            }

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

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

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

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

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

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

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

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

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

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