public void Bind(IFeedback model) { CellContentRootView?.SetBackgroundColor(ColorConstants.TransparentColor, 4); if (ServiceText != null) { ServiceText.Text = ""; ServiceText.SetTextColor(ColorConstants.WhiteColor); ServiceText.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size12); } if (Service2Text != null) { Service2Text.Text = model.NameCategory; Service2Text.SetTextColor(ColorConstants.WhiteColor); Service2Text.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size12); } if (FeedbackStatus != null) { FeedbackStatus.SetFont(FontsConstant.OpenSansBold, FontsConstant.Size18); FeedbackStatus.SetTextColor(ColorConstants.WhiteColor); } if (FeedbackVotes != null) { FeedbackVotes.Text = ""; FeedbackVotes.SetTextColor(ColorConstants.BackgroundGray); FeedbackVotes.SetFont(FontsConstant.OpenSansRegular, FontsConstant.Size12); } ServiceImage?.SetImageFromResource(model.ImagePathCategory); ProgressView?.SetBackgroundColor(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent20), 5); if (model.Rating == 0) { ResetView(); FeedbackStatus.Text = RFeedback.TerribleText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(0).ImagePath); } else if (model.Rating <= 20) { FeedbackStatus.Text = RFeedback.TerribleText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(0).ImagePath); ProgressView20?.SetBackgroundColor(ColorConstants.SelectorHome, 5); ProgressView20.Visibility = ViewState.Visible; ProgressView40.Visibility = ViewState.Invisible; ProgressView60.Visibility = ViewState.Invisible; ProgressView80.Visibility = ViewState.Invisible; } else if (model.Rating <= 40) { FeedbackStatus.Text = RFeedback.BadText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(1).ImagePath); ProgressView40?.SetBackgroundColor(ColorConstants.SelectorHome, 5); ProgressView40.Visibility = ViewState.Visible; ProgressView20.Visibility = ViewState.Invisible; ProgressView60.Visibility = ViewState.Invisible; ProgressView80.Visibility = ViewState.Invisible; } else if (model.Rating <= 60) { FeedbackStatus.Text = RFeedback.OkayText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(2).ImagePath); ProgressView60?.SetBackgroundColor(ColorConstants.SelectorHome, 5); ProgressView60.Visibility = ViewState.Visible; ProgressView40.Visibility = ViewState.Invisible; ProgressView20.Visibility = ViewState.Invisible; ProgressView80.Visibility = ViewState.Invisible; } else if (model.Rating <= 80) { FeedbackStatus.Text = RFeedback.GoodText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(3).ImagePath); ProgressView80?.SetBackgroundColor(ColorConstants.SelectorHome, 5); ProgressView80.Visibility = ViewState.Visible; ProgressView60.Visibility = ViewState.Invisible; ProgressView40.Visibility = ViewState.Invisible; ProgressView20.Visibility = ViewState.Invisible; } else if (model.Rating == 100) { FeedbackStatus.Text = RFeedback.GreatText.ToUpperInvariant(); ImageStatus?.SetImageFromResource(FeedbackManager.Instance.GetItem().ElementAtOrDefault(4).ImagePath); ProgressView?.SetBackgroundColor(ColorConstants.SelectorHome, 5); ResetView(); } ImageStatus?.SetImageColorFilter(ColorConstants.WhiteColor.SelectorTransparence(ColorConstants.Procent84)); }