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
    public void SelectEmail(EmailButton button)
    {
        int   itemIndex = button.transform.GetSiblingIndex();
        Email email     = SaveData.Get().emails[itemIndex];

        mSelectedEmail = email;
        SaveData.Get().MarkEmailRead(email);
    }
Ejemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (detailDescriptionLabel != null)
            {
                detailDescriptionLabel.Dispose();
                detailDescriptionLabel = null;
            }

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

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

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

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

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

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

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

            if (TweetButton != null)
            {
                TweetButton.Dispose();
                TweetButton = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CallButton != null)
            {
                CallButton.Dispose();
                CallButton = null;
            }

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

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

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

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

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

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

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

            if (TaskLabel != null)
            {
                TaskLabel.Dispose();
                TaskLabel = null;
            }
        }
Ejemplo n.º 5
0
        protected override void AssingViews()
        {
            buttonBack.TouchUpInside      += (o, e) => presenter.BackClicked();
            EmailButton.Layer.CornerRadius = 8.0f;
            EmailButton.SetTitle(String.Format(AppDelegate.LanguageBundle.GetLocalizedString("alarm_call_to"), AppDelegate.LanguageBundle.GetLocalizedString("alarm_phone")), UIControlState.Normal);

            EmailButton.TouchUpInside    += (o, e) => presenter.ContactEmailClicked();
            ButtonMail.TouchUpInside     += (o, e) => presenter.ContactEmailClicked();
            DownloadButton.TouchUpInside += (o, e) => presenter.OpenSkypeEnterprise();


            configureView();
            roundedViews();
        }
        void ReleaseDesignerOutlets()
        {
            if (EmailButton != null)
            {
                EmailButton.Dispose();
                EmailButton = null;
            }

            if (TakeActionButton != null)
            {
                TakeActionButton.Dispose();
                TakeActionButton = null;
            }
        }
Ejemplo n.º 7
0
    private void ShowInboxEmails()
    {
        for (int i = 0; i < emails.Count; i++)
        {
            // Get data from file
            string fileData = emails[i].text;

            // Split file into lines and remove new line characters (Only first 2 lines)
            string[] lines = fileData.Split('\n');
            for (int j = 0; j < 2; j++)
            {
                lines[j] = RemoveNewLineChar(lines[j]);
            }

            // Get a button and assign it to scroll list
            GameObject newButton = buttonObjectPool.GetObject();
            newButton.transform.SetParent(emailsPanel);

            // Update button with email subject and date
            EmailButton emailButton = newButton.GetComponent <EmailButton>();
            emailButton.Setup(lines[0], lines[1], this);
        }
    }
Ejemplo n.º 8
0
    void ui_layout()
    {
        // aboutPanel
        gameObject.GetComponent <RectTransform>().sizeDelta = new Vector2(Display.main.systemWidth, Display.main.systemHeight);
        WebPanel.GetComponent <RectTransform>().sizeDelta   = gameObject.GetComponent <RectTransform>().sizeDelta;
        // 顶部导航条
        var nav_h = (float)(64 / 667.0) * Display.main.systemHeight;

        TopPanel.GetComponent <RectTransform>().sizeDelta = new Vector2(TopPanel.GetComponent <RectTransform>().sizeDelta.x, nav_h);
        // 返回按钮
        var backbutton_to_left = (float)(26.7 / 375.0) * Display.main.systemWidth;
        var backbutton_w       = (float)(23.1 / 375.0) * Display.main.systemWidth;
        var backbutton_h       = (float)((18 / 23.1) * backbutton_w);

        BackButton.GetComponent <RectTransform>().sizeDelta          = new Vector2(backbutton_w, backbutton_h);
        BackButton.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(backbutton_to_left, 0, 0);
        // 标题文本
        var titletext_to_top = (float)(18 / 667.0) * Display.main.systemHeight;
        var titletext_h      = (float)(22 / 667.0) * Display.main.systemHeight;

        TitleText.rectTransform.sizeDelta = new Vector2(TitleText.rectTransform.sizeDelta.x, titletext_h);
        // 中间logo
        var logo_to_top = (float)(128.1 / 667.0) * Display.main.systemHeight;
        var logo_w      = (float)(76 / 375.0) * Display.main.systemWidth;
        var logo_h      = (float)(98.4 / 76.0) * logo_w;

        LogoImage.rectTransform.anchoredPosition3D = new Vector3(0, -logo_to_top, 0);
        LogoImage.rectTransform.sizeDelta          = new Vector2(logo_w, logo_h);
        // 名称
        var nametext_to_top = (float)(245.5 / 667.0) * Display.main.systemHeight;
        var nametext_h      = (float)(20 / 667.0) * Display.main.systemHeight;

        NameText.rectTransform.sizeDelta          = new Vector2(NameText.rectTransform.sizeDelta.x, nametext_h);
        NameText.rectTransform.anchoredPosition3D = new Vector3(0, -nametext_to_top, 0);
        // 站位button
        var null_button_height = (float)(35 / 667.0) * Display.main.systemHeight;
        var null_button_posy   = -(float)(334 / 667.0) * Display.main.systemHeight;

        // 联系电话
        var tel_button_width  = (float)Display.main.systemWidth;
        var tel_button_height = (float)(47 / 667.0) * Display.main.systemHeight;
        var tel_button_posy   = /*-(float)(334 / 667.0) * Display.main.systemHeight*/ null_button_posy - null_button_height;

        TelButton.GetComponent <RectTransform>().sizeDelta          = new Vector2(tel_button_width, tel_button_height);
        TelButton.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(0, tel_button_posy, 0.0f);
        // 邮件
        EmailButton.GetComponent <RectTransform>().sizeDelta          = new Vector2(tel_button_width, tel_button_height);
        EmailButton.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(0, tel_button_posy - tel_button_height, 0.0f);
        // 网站
        NetButton.GetComponent <RectTransform>().sizeDelta          = new Vector2(tel_button_width, tel_button_height);
        NetButton.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(0, tel_button_posy - tel_button_height * 2, 0.0f);
        // 站位button
        NullButton.GetComponent <RectTransform>().sizeDelta           = new Vector2(tel_button_width, null_button_height);
        NullButton.GetComponent <RectTransform>().anchoredPosition3D  = new Vector3(0, tel_button_posy - tel_button_height * 3, 0.0f);
        NullButton1.GetComponent <RectTransform>().sizeDelta          = new Vector2(tel_button_width, null_button_height);
        NullButton1.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(0, null_button_posy, 0.0f);
        // 联系电话内部的Image
        var tel_pic_posx = (float)((11 + 25) / 375.0) * Display.main.systemWidth;
        var tel_pic_w    = (float)(14 / 375.0) * Display.main.systemWidth;
        var tel_pic_h    = tel_pic_w;

        TelButton_Image.rectTransform.anchoredPosition3D = new Vector3(tel_pic_posx, 0, 0);
        TelButton_Image.rectTransform.sizeDelta          = new Vector2(tel_pic_w, tel_pic_h);
        // 邮件内部的Image
        var email_image_w = (float)(17.2 / 375.0) * Display.main.systemWidth;
        var email_image_h = (float)(13.6 / 17.2) * email_image_w;

        EmailButton_Image.rectTransform.anchoredPosition3D = TelButton_Image.rectTransform.anchoredPosition3D;
        EmailButton_Image.rectTransform.sizeDelta          = new Vector2(email_image_w, email_image_h);
        // 网站内部的Image
        var net_iamge_posx = (float)((12 + 25) / 375.0) * Display.main.systemWidth;
        var net_image_w    = (float)(16.1 / 375.0) * Display.main.systemWidth;

        NetButton_Image.rectTransform.anchoredPosition3D = new Vector3(net_iamge_posx, 0, 0);
        NetButton_Image.rectTransform.sizeDelta          = new Vector2(net_image_w, net_image_w);
        // 内部的Text、lineImage
        var tel_text_posx      = (float)((35 + 25) / 375.0) * Display.main.systemWidth;
        var tel_info_text_posx = -(float)(25 / 375.0) * Display.main.systemWidth;
        var tel_text_h         = (float)(16 / 667.0) * Display.main.systemHeight;
        var tel_bgImage_height = (float)(Display.main.systemWidth > 375 ? (float)(1 / 667.0) * Display.main.systemHeight : 1f);
        var tel_bgImage_width  = (float)(Display.main.systemWidth - (50 / 375.0) * Display.main.systemWidth);

        TelButton_NameText.rectTransform.sizeDelta            = new Vector2(TelButton.GetComponent <RectTransform>().rect.width / 2.0f - tel_text_posx, tel_text_h);
        TelButton_NameText.rectTransform.anchoredPosition3D   = new Vector3(tel_text_posx, 0, 0);
        TelButton_InfoText.rectTransform.sizeDelta            = new Vector2(TelButton.GetComponent <RectTransform>().rect.width / 2.0f, tel_text_h);
        TelButton_InfoText.rectTransform.anchoredPosition3D   = new Vector3(tel_info_text_posx, 0, 0);
        TelButton_BgImage.rectTransform.sizeDelta             = new Vector2(tel_bgImage_width, tel_bgImage_height);
        EmailButton_NameText.rectTransform.sizeDelta          = new Vector2(EmailButton.GetComponent <RectTransform>().rect.width / 2.0f - tel_text_posx, tel_text_h);
        EmailButton_NameText.rectTransform.anchoredPosition3D = new Vector3(tel_text_posx, 0, 0);
        EmailButton_InfoText.rectTransform.sizeDelta          = new Vector2(EmailButton.GetComponent <RectTransform>().rect.width / 2.0f, tel_text_h);
        EmailButton_InfoText.rectTransform.anchoredPosition3D = new Vector3(tel_info_text_posx, 0, 0);
        EmailButton_BgImage.rectTransform.sizeDelta           = new Vector2(tel_bgImage_width, tel_bgImage_height);
        NetButton_NameText.rectTransform.sizeDelta            = new Vector2(NetButton.GetComponent <RectTransform>().rect.width / 2.0f - tel_text_posx, tel_text_h);
        NetButton_NameText.rectTransform.anchoredPosition3D   = new Vector3(tel_text_posx, 0, 0);
        NetButton_InfoText.rectTransform.sizeDelta            = new Vector2(NetButton.GetComponent <RectTransform>().rect.width / 2.0f, tel_text_h);
        NetButton_InfoText.rectTransform.anchoredPosition3D   = new Vector3(tel_info_text_posx, 0, 0);
        NetButton_BgImage.rectTransform.sizeDelta             = new Vector2(tel_bgImage_width, tel_bgImage_height);
        NullButton_BgImage.rectTransform.sizeDelta            = new Vector2(tel_bgImage_width, tel_bgImage_height);
        // 底部公司
        var buttom_text_to_bottom = (float)(13.1 / 667.0) * Display.main.systemHeight;
        var buttom_text_h         = (float)(17 / 667.0) * Display.main.systemHeight;

        ButtomText.rectTransform.sizeDelta          = new Vector2(Display.main.systemWidth, buttom_text_h);
        ButtomText.rectTransform.anchoredPosition3D = new Vector3(0, buttom_text_to_bottom, 0);

        // web
        var web_text_height = (float)(25 / 667.0) * Display.main.systemHeight;

        WebPanelText.rectTransform.sizeDelta = new Vector2(Display.main.systemWidth, web_text_height);
        var web_panel_height = (float)Display.main.systemHeight - nav_h;
        var web_panel_posy   = -(float)nav_h / 2.0f;

        WebPanel.GetComponent <RectTransform>().anchoredPosition3D = new Vector3(0, web_panel_posy, 0);
        WebPanel.GetComponent <RectTransform>().sizeDelta          = new Vector2(Display.main.systemWidth, web_panel_height);
    }
Ejemplo n.º 9
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;
            }
        }
Ejemplo n.º 10
0
        void ReleaseDesignerOutlets()
        {
            if (EmailImage != null)
            {
                EmailImage.Dispose();
                EmailImage = null;
            }

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

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

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

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

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

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

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

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

            if (EmailButton != null)
            {
                EmailButton.Dispose();
                EmailButton = null;
            }
        }
Ejemplo n.º 11
0
 public Email(string patientName, EmailButton sendEmail = EmailButton.SendAutoEmail)
 {
     InitializeComponent();
     _patientName   = patientName;
     this.sendEmail = sendEmail;
 }
Ejemplo n.º 12
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLine1Label != null)
            {
                AddressLine1Label.Dispose();
                AddressLine1Label = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (WorkStackView != null)
            {
                WorkStackView.Dispose();
                WorkStackView = null;
            }
        }
Ejemplo n.º 13
0
 /// <summary>
 /// Click the 'Email' button in the toolbar
 /// </summary>
 public void ClickEmailButton()
 {
     EmailButton.WaitRetry(_driver).Click();
 }