private void SetTexts() { HeaderLabel.SetAttributedText(InformationAndConsentViewModel.INFORMATION_CONSENT_HEADER_TEXT); DescriptionLabel.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_DESCRIPTION); LookUp_Header.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_LOOKUP_HEADER, StyleUtil.FontType.FontBold); LookUp_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_LOOKUP_TEXT); Notification_Header.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_NOTIFICATION_HEADER, StyleUtil.FontType.FontBold); Notification_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_NOTIFICATION_TEXT); Consent_BeAware_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_CONSENT_BEAWARE_TEXT); Consent_Explanation_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_CONSENT_EXPLANATION_TEXT, StyleUtil.FontType.FontItalic); }
public override void ViewDidLoad() { base.ViewDidLoad(); _viewModel = new InformationAndConsentViewModel(OnAuthSuccess, OnAuthError); _viewModel.Init(); CloseBtn.AccessibilityLabel = InformationAndConsentViewModel.CLOSE_BUTTON_ACCESSIBILITY_LABEL; HeaderLabel.SetAttributedText(InformationAndConsentViewModel.INFORMATION_CONSENT_HEADER_TEXT); DescriptionLabel.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_DESCRIPTION); LookUp_Header.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_LOOKUP_HEADER, StyleUtil.FontType.FontBold); LookUp_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_LOOKUP_TEXT); Notification_Header.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_NOTIFICATION_HEADER, StyleUtil.FontType.FontBold); Notification_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_NOTIFICATION_TEXT); Consent_BeAware_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_CONSENT_BEAWARE_TEXT, StyleUtil.FontType.FontBold); Consent_Explanation_Text.SetAttributedText(InformationAndConsentViewModel.INFOCONSENT_CONSENT_EXPLANATION_TEXT); StyleUtil.InitButtonStyling(LogInWithIDPortenBtn, InformationAndConsentViewModel.INFORMATION_CONSENT_ID_PORTEN_BUTTON_TEXT); SetupStyling(); }
void ReleaseDesignerOutlets() { if (CloseBtn != null) { CloseBtn.Dispose(); CloseBtn = null; } if (Consent_BeAware_Text != null) { Consent_BeAware_Text.Dispose(); Consent_BeAware_Text = null; } if (Consent_Explanation_Text != null) { Consent_Explanation_Text.Dispose(); Consent_Explanation_Text = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (LogInWithIDPortenBtn != null) { LogInWithIDPortenBtn.Dispose(); LogInWithIDPortenBtn = null; } if (LookUp_Header != null) { LookUp_Header.Dispose(); LookUp_Header = null; } if (LookUp_Text != null) { LookUp_Text.Dispose(); LookUp_Text = null; } if (Notification_Header != null) { Notification_Header.Dispose(); Notification_Header = null; } if (Notification_Text != null) { Notification_Text.Dispose(); Notification_Text = null; } }