private void styleView() { HelloLabel.Font = Styles.SetHelveticaFont(25); ContactDataTitleLabel.Font = Styles.SetHelveticaBoldFont(15); ContactDataDescripLabel.Font = Styles.SetHelveticaFont(15); HealthDataTitleLabel.Font = Styles.SetHelveticaBoldFont(15); HealthDataDescripLabel.Font = Styles.SetHelveticaFont(15); CloseSessionLabel.Font = Styles.SetHelveticaFont(15); CenterTitle.Font = Styles.SetHelveticaBoldFont(15); CenterDesc.Font = Styles.SetHelveticaFont(15); ContactDataDescripLabel.TextColor = UIColor.LightGray; HealthDataDescripLabel.TextColor = UIColor.LightGray; CenterDesc.TextColor = UIColor.LightGray; HealthDataView.setBorderShadow(); ContactDataView.setBorderShadow(); CenterView.setBorderShadow(); }
protected override void AssingViews() { styleView(); applyTraslations(); UITapGestureRecognizer gestureRecognizerContact = new UITapGestureRecognizer(() => presenter.OpenContactData()); UITapGestureRecognizer gestureRecognizerHealth = new UITapGestureRecognizer(() => presenter.OpenMedicalInfo()); UITapGestureRecognizer gestureRecognizerCenter = new UITapGestureRecognizer(() => presenter.OpenCenter()); HealthDataView.AddGestureRecognizer(gestureRecognizerHealth); ContactDataView.AddGestureRecognizer(gestureRecognizerContact); CenterView.AddGestureRecognizer(gestureRecognizerCenter); CloseSessionButton.TouchUpInside += (sender, e) => presenter.LogoutClicked(); LanguageButton.TouchUpInside += (sender, e) => presenter.LanguageClicked(); HelloLabel.Text = ""; CloseSessionLabel.Text = ""; CloseSessionButton.Layer.CornerRadius = 8.0f; labeVersion.Text = String.Format(AppDelegate.LanguageBundle.GetLocalizedString("version"), NSBundle.MainBundle.InfoDictionary["CFBundleShortVersionString"]); }
void ReleaseDesignerOutlets() { if (CenterDesc != null) { CenterDesc.Dispose(); CenterDesc = null; } if (CenterTitle != null) { CenterTitle.Dispose(); CenterTitle = null; } if (CenterView != null) { CenterView.Dispose(); CenterView = null; } if (CloseSessionButton != null) { CloseSessionButton.Dispose(); CloseSessionButton = null; } if (CloseSessionLabel != null) { CloseSessionLabel.Dispose(); CloseSessionLabel = null; } if (ContactDataDescripLabel != null) { ContactDataDescripLabel.Dispose(); ContactDataDescripLabel = null; } if (ContactDataTitleLabel != null) { ContactDataTitleLabel.Dispose(); ContactDataTitleLabel = null; } if (ContactDataView != null) { ContactDataView.Dispose(); ContactDataView = null; } if (HealthDataDescripLabel != null) { HealthDataDescripLabel.Dispose(); HealthDataDescripLabel = null; } if (HealthDataTitleLabel != null) { HealthDataTitleLabel.Dispose(); HealthDataTitleLabel = null; } if (HealthDataView != null) { HealthDataView.Dispose(); HealthDataView = null; } if (HelloLabel != null) { HelloLabel.Dispose(); HelloLabel = null; } if (labeVersion != null) { labeVersion.Dispose(); labeVersion = null; } if (LanguageButton != null) { LanguageButton.Dispose(); LanguageButton = null; } }