Ejemplo n.º 1
0
        private void configureView()
        {
            TitleViewLabel.Font     = Styles.SetHelveticaBoldFont(18);
            DescriptionLabel.Font   = Styles.SetHelveticaBoldFont(18);
            AlarmRequestLabel1.Font = Styles.SetHelveticaFont(15);
            AlarmRequestLabel2.Font = Styles.SetHelveticaFont(15);
            ConfirmLabel.Font       = Styles.SetHelveticaFont(15);
            DownloadLabel.Font      = Styles.SetHelveticaFont(15);

            NumberConfirmLabel.Font  = Styles.SetHelveticaBoldFont(16);
            NumberRequestLabel.Font  = Styles.SetHelveticaBoldFont(16);
            NumberDownloadLabel.Font = Styles.SetHelveticaBoldFont(16);

            DownloadButton.SetTitleColor(Colors.primaryRed, UIControlState.Normal);
            DownloadButton.Layer.BorderColor  = UIColor.Black.CGColor;
            DownloadButton.Layer.BorderWidth  = 1.0f;
            DownloadButton.Layer.CornerRadius = 4;


            ButtonMail.SetTitleColor(Colors.primaryRed, UIControlState.Normal);

            TitleViewLabel.Text               = AppDelegate.LanguageBundle.GetLocalizedString("alarm_title");
            DescriptionLabel.Text             = AppDelegate.LanguageBundle.GetLocalizedString("alarm_description");
            AlarmRequestLabel1.AttributedText = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_date_text_1"), AlarmRequestLabel1.Font.Name, AlarmRequestLabel1.Font.PointSize);
            AlarmRequestLabel2.Text           = AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_date_text_2");
            ConfirmLabel.AttributedText       = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_confirm_date"), ConfirmLabel.Font.Name, ConfirmLabel.Font.PointSize);
            DownloadLabel.AttributedText      = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_download_skype"), DownloadLabel.Font.Name, DownloadLabel.Font.PointSize);
            DownloadButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_download_skype_link"), UIControlState.Normal);
            EmailButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_button"), UIControlState.Normal);
            ButtonMail.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_email"), UIControlState.Normal);
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (AlarmRequestLabel1 != null)
            {
                AlarmRequestLabel1.Dispose();
                AlarmRequestLabel1 = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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