Exemplo n.º 1
0
        private void InitViews()
        {
            BackgroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);

            if (TitleText != null)
            {
                TitleText.Text = RFeedback.GiveUsFedbackText;
                TitleText.SetTextColor(ColorConstants.WhiteColor);
                TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size24);
            }

            if (ConfirmButton != null)
            {
                ConfirmButton.SetTextColor(ColorConstants.WhiteColor);
                ConfirmButton.Text = RFeedback.SubmitFeedbackText.ToUpperInvariant();
                ConfirmButton.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
                ConfirmButton.SetBackgroundColor(ColorConstants.SelectorHome);
                ConfirmButton.Click -= Confirm_Click;
                ConfirmButton.Click += Confirm_Click;
                ConfirmButton.SetSelectedColor(ColorConstants.WhiteColor);

                ConfirmButton.Visibility = FeedbackManager.Instance.LastService ? ViewState.Visible : ViewState.Invisible;
            }

            HeaderBackroundRoundText?.SetBackgroundColor(ColorConstants.BackroundCell, type: RadiusType.Aspect);
            BackroundServiceImage?.SetImageFromResource(FeedbackManager.Instance.GetCurrentItem()?.ImagePathCategory);

            if (SericeText == null)
            {
                return;
            }
            SericeText.Text = FeedbackManager.Instance.GetCurrentItem()?.NameCategory;
            SericeText.SetTextColor(ColorConstants.WhiteColor);
            SericeText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18);
        }
Exemplo n.º 2
0
 void MainLayout_OnLayoutChildren(double x, double y, double width, double height)
 {
     //TODO - if dragging, probably ignore this
     if (_contentBounds == Rectangle.Zero)
     {
         _contentBounds = new Rectangle(0, 0, width, height);
     }
     else if (_contentBounds.Width != width)
     {
         _contentBounds.Width  = width;
         _contentBounds.Height = height;
     }
     BackgroundContent.Layout(new Rectangle(width / 2, 0, width / 2, height));
     ForegroundContent.Layout(_contentBounds);
 }
Exemplo n.º 3
0
        private void InitViews()
        {
            BackgroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);

            EventImage?.SetImageFromUrl(EventManager.Instance.GetDetails().ImagePathView);
            EventImage?.SetBackgroundColor(ColorConstants.TransparentColor, 5);

            EventImage.Swipe -= Image_Swipe;
            EventImage.Swipe += Image_Swipe;

            if (EventName != null)
            {
                EventName.Text = EventManager.Instance.GetDetails().Name;
                EventName.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size28);
                EventName.SetTextColor(ColorConstants.WhiteColor);
            }

            if (EventDescription != null)
            {
                EventDescription.Text = EventManager.Instance.GetDetails().Description;

                EventDescription.SetTextColor(ColorConstants.WhiteColor);
                EventDescription.SetFont(FontsConstant.OpenSansRegular);
            }

            if (TimeEvent != null)
            {
                TimeEvent.Text = EventManager.Instance.GetDetails().EventDateTime.ToString("dd") + " " + EventManager.Instance.GetDetails().EventDateTime.ToString("MMMM");
                HourEvent.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
                TimeEvent.SetTextColor(ColorConstants.WhiteColor);
            }

            SeparatorImage?.SetImageFromResource(DrawableConstants.SeparatorLineEvent);

            if (HourEvent != null)
            {
                HourEvent.Text = EventManager.Instance.GetDetails().EventDateTime.ToString("H:mm");
                HourEvent.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size15);
                HourEvent.SetTextColor(ColorConstants.SelectorHome);
            }

            TimeEventBackground?.SetImageFromResource(DrawableConstants.EventDateBackgroundImage);
        }
Exemplo n.º 4
0
        private void InitViews()
        {
            BackgroundContent?.SetBackgroundColor(ColorConstants.BackroundContent);

            if (LeaveFedbackText != null)
            {
                LeaveFedbackText.Text = RFeedback.ClientsFeedBakText;
                LeaveFedbackText.SetTextColor(ColorConstants.WhiteColor);
                LeaveFedbackText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size24);
            }

            if (LeaveFedbackButton == null)
            {
                return;
            }
            LeaveFedbackButton.SetTextColor(ColorConstants.WhiteColor);
            LeaveFedbackButton.Text = RFeedback.GiveUsFedbackText.ToUpperInvariant();
            LeaveFedbackButton.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14);
            LeaveFedbackButton.SetBackgroundColor(ColorConstants.SelectorHome);
            LeaveFedbackButton.Click -= LeaveFedbakButtonIsClicked;
            LeaveFedbackButton.Click += LeaveFedbakButtonIsClicked;
            LeaveFedbackButton.SetSelectedColor(ColorConstants.WhiteColor);
        }