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); }
public override void UpdateData() { base.UpdateData(); if (TitleText == null) { return; } TitleText.Text = "Read qr-code in order to call a waiter to your table"; TitleText.SetFont(FontsConstant.RobotoBold, FontsConstant.Size18); }
public override void UpdateData() { MainWindowView?.SetBackgroundColor(ColorConstants.WhiteColor, 8); CellModel2 = new FeedbackListCategoryCell(this); BackgroundView?.SetBackgroundColor(ColorConstants.TransparentColor); if (SubmitText != null) { SubmitText.SetTextColor(ColorConstants.WhiteColor); SubmitText.Text = "Submit Feedback".ToUpperInvariant(); SubmitText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14); SubmitText.SetBackgroundColor(ColorConstants.SelectorHome); SubmitText.Click -= Submit_Click; SubmitText.Click += Submit_Click; SubmitText.SetSelectedColor(ColorConstants.WhiteColor); } if (TitleText != null) { TitleText.Text = RFeedback.GiveUsFedbackText; TitleText.SetTextColor(ColorConstants.FeedbackTitle); TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size24); } if (CloseImage != null) { CloseImage?.SetImageFromResource(DrawableConstants.FeedbackCloseIcon); CloseImage.Click -= BackgroundView_Click; CloseImage.Click += BackgroundView_Click; } //ListViewCategory?.UpdateDataSource(FeedbackManager.Instance.GetCategoryItem()); //ListViewCategory?.Orientation(OrientationListView.Horizontal); ListViewEmoji?.UpdateDataSource(FeedbackManager.Instance.GetItem()); ListViewEmoji?.Orientation(OrientationListView.Horizontal); }
public override void UpdateData() { base.UpdateData(); BackgroundContainer?.SetBackgroundColor(ColorConstants.BackroundContent); View1?.SetBackgroundColor(ColorConstants.SelectorHome); View2?.SetBackgroundColor(ColorConstants.SelectorHome); View3?.SetBackgroundColor(ColorConstants.SelectorHome); View4?.SetBackgroundColor(ColorConstants.SelectorHome); View5?.SetBackgroundColor(ColorConstants.SelectorHome); View6?.SetBackgroundColor(ColorConstants.SelectorHome); View7?.SetBackgroundColor(ColorConstants.SelectorHome); View8?.SetBackgroundColor(ColorConstants.SelectorHome); ImageQR?.SetImageFromResource(DrawableConstants.QRBlurryIcon); if (ImageScan != null) { ImageScan.Visibility = ViewState.Visible; ImageScan?.SetImageFromResource(DrawableConstants.QRWaitIcon); } if (ConfirmTableText != null) { ConfirmTableText.Click -= ConfirmTableText_Click; ConfirmTableText.Click += ConfirmTableText_Click; ConfirmTableText.Text = RCode.ConfirmTable.ToUpperInvariant(); ConfirmTableText.SetBackgroundColor(ColorConstants.BlackColor); ConfirmTableText.SetSelectedColor(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent50)); ConfirmTableText.SetTextColor(ColorConstants.WhiteColor); ConfirmTableText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size14); } if (TitleText != null) { TitleText.Text = RCode.QrCode; TitleText.SetTextColor(ColorConstants.WhiteColor); TitleText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18); } if (TableNrText != null) { TableNrText.Text = RCode.TableNo; TableNrText.SetTextColor(ColorConstants.WhiteColor); TableNrText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18); } if (TableNrValueText != null) { TableNrValueText.Visibility = ViewState.Invisible; TableNrValueText.Text = string.Empty; TableNrValueText.SetTextColor(ColorConstants.SelectorHome); TableNrValueText.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size36); } if (ImageQR.IsNull()) { return; } ImageQR.Click -= ImageQR_Click; ImageQR.Click += ImageQR_Click; }
public override void UpdateData() { base.UpdateData(); BackroundImage?.SetBackgroundColor(ColorConstants.GrayCreateAccountColor); if (TitleText != null) { TitleText.Text = RCreate.CreateAccountText; TitleText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size34); TitleText.SetTextColor(ColorConstants.WhiteColor); } if (NotePolicyText != null) { NotePolicyText.Text = RCreate.CreateAgreeContentText; NotePolicyText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size12); NotePolicyText.SetTextColor(ColorConstants.WhiteColor); NotePolicyText.SetLinkAndStyle(new[] { RCreate.CreateTermsConditionText, RCreate.CreatePrivacyPolicyText }, new[] { "www.facebook.com", "www.facebook.com" }, "color:" + ColorConstants.SelectorHome + "; text-decoration: none;"); } if (EmailPlaceholderText != null) { EmailPlaceholderText.Text = RSign.SignEmailText; EmailPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15); EmailPlaceholderText.SetTextColor(ColorConstants.WhiteColor); } if (EmailText != null) { EmailText.SetTextColor(ColorConstants.WhiteColor); EmailText.SetFont(FontsConstant.OpenSansRegular); EmailText.SetCursorColor(ColorConstants.SelectorHome); EmailText.Focus -= LineEmail; EmailText.Focus += LineEmail; } EmailLineText?.SetBackgroundColor(ColorConstants.WhiteColor); if (PasswordPlaceholderText != null) { PasswordPlaceholderText.Text = RSign.SignPasswordText; PasswordPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15); PasswordPlaceholderText.SetTextColor(ColorConstants.WhiteColor); } if (PasswordText != null) { PasswordText.SetTextColor(ColorConstants.WhiteColor); PasswordText.SetFont(FontsConstant.OpenSansRegular); PasswordText.SetCursorColor(ColorConstants.SelectorHome); PasswordText.SetSecure(InputType.Password); PasswordText.Focus -= LinePassword; PasswordText.Focus += LinePassword; } PasswordLineText?.SetBackgroundColor(ColorConstants.WhiteColor); if (PasswordRepeatPlaceholderText != null) { PasswordRepeatPlaceholderText.Text = RCreate.CreateRepeatPasswordText; PasswordRepeatPlaceholderText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size15); PasswordRepeatPlaceholderText.SetTextColor(ColorConstants.WhiteColor); } if (PasswordRepeatText != null) { PasswordRepeatText.SetTextColor(ColorConstants.WhiteColor); PasswordRepeatText.SetFont(FontsConstant.OpenSansRegular); PasswordRepeatText.SetCursorColor(ColorConstants.SelectorHome); PasswordText.SetSecure(InputType.Password); PasswordRepeatText.Focus -= LinePasswordRepeat; PasswordRepeatText.Focus += LinePasswordRepeat; } PasswordRepeatLineText?.SetBackgroundColor(ColorConstants.WhiteColor); if (SignUpText != null) { SignUpText.Text = RSign.SignSignUpText.ToUpperInvariant(); SignUpText.SetTextColor(ColorConstants.WhiteColor); SignUpText.SetBackgroundColor(ColorConstants.SelectorHome); SignUpText.SetSelectedColor(ColorConstants.WhiteColor); SignUpText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size14); } }