Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (ConsentConversationDesc != null)
            {
                ConsentConversationDesc.Dispose();
                ConsentConversationDesc = null;
            }

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

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

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

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

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

            if (ConsentTitleDesc != null)
            {
                ConsentTitleDesc.Dispose();
                ConsentTitleDesc = null;
            }
        }
Esempio n. 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            Title = StringResources.consent_summary_title;

            ConsentSummaryTitle.Text = StringResources.consent_summary_subtitle;

            var SelectedProjectID = Convert.ToInt32(NSUserDefaults.StandardUserDefaults.IntForKey("SelectedProjectID"));
            var SelectedProject   = Queries.ProjectById(SelectedProjectID);
            var consentType       = NSUserDefaults.StandardUserDefaults.StringForKey("SESSION_CONSENT");

            ConsentTitleDesc.AttributedText = BuildHTML(StringResources.consent_summary_screen_content_project_title, SelectedProject.Title);
            var participantsDesc = string.Format(StringResources.consent_summary_screen_content_participants_desc, BuildParticipants(Queries.SelectedParticipants()));

            ConsentParticipantsDesc.AttributedText = BuildHTML(StringResources.consent_summary_screen_content_participants_title, participantsDesc);
            ConsentResearchDesc.AttributedText     = BuildHTML(StringResources.consent_summary_screen_content_research_title, StringResources.consent_summary_screen_content_research_desc);
            ConsentConversationDesc.AttributedText = BuildHTML(StringResources.consent_summary_screen_content_conversation_title, string.Format(StringResources.consent_summary_screen_content_conversation_desc, consentType));
            ConsentEmbargoDesc.AttributedText      = BuildHTML(StringResources.consent_summary_screen_content_embargo_title, StringResources.consent_summary_screen_content_embargo_desc);

            ConsentSummarySubmit.SetTitle(StringResources.consent_summary_screen_action, UIControlState.Normal);
            ConsentSummarySubmit.Layer.BorderWidth = 1.0f;
            ConsentSummarySubmit.Layer.BorderColor = UIColor.FromRGB(.43f, .80f, .79f).CGColor;
        }