void ReleaseDesignerOutlets() { if (BoxContentLabelTwo != null) { BoxContentLabelTwo.Dispose(); BoxContentLabelTwo = null; } if (BoxTitleLabel != null) { BoxTitleLabel.Dispose(); BoxTitleLabel = null; } if (BoxView != null) { BoxView.Dispose(); BoxView = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (ContentLabelOne != null) { ContentLabelOne.Dispose(); ContentLabelOne = null; } if (ContentLabelTwo != null) { ContentLabelTwo.Dispose(); ContentLabelTwo = null; } if (HealthAuthoritiesLogo != null) { HealthAuthoritiesLogo.Dispose(); HealthAuthoritiesLogo = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (ToStartPageBtn != null) { ToStartPageBtn.Dispose(); ToStartPageBtn = null; } }
private void SetStyling() { TitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_HEADER); TitleLabel.AccessibilityLabel = QuestionnaireViewModel.REGISTER_QUESTIONAIRE_ACCESSIBILITY_RECEIPT_HEADER; ContentLabelOne.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_TEXT); ContentLabelTwo.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DESCRIPTION); BoxTitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_HEADER, StyleUtil.FontType.FontBold); StyleUtil.InitLabelWithSpacing(BoxContentLabelTwo, StyleUtil.FontType.FontRegular, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_READ_MORE, 1.28, 12, 16); StyleUtil.InitButtonStyling(ToStartPageBtn, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DISMISS); }
private void SetStyling() { CloseButton.TintColor = ColorHelper.PRIMARY_COLOR; TitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_HEADER); ContentLabelOne.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_TEXT); ContentLabelTwo.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DESCRIPTION); BoxTitleLabel.SetAttributedText(QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_HEADER, StyleUtil.FontType.FontBold); StyleUtil.InitLabelWithSpacing(BoxContentLabelTwo, StyleUtil.FontType.FontRegular, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_INNER_READ_MORE, 1.28, 12, 16); StyleUtil.InitButtonStyling(ToStartPageBtn, QuestionnaireViewModel.REGISTER_QUESTIONAIRE_RECEIPT_DISMISS); }