/// <summary> /// Update the buttons state /// </summary> /// <param name="prospect">The prospect with the needed scores</param> private void UpdateButtons(SalesApp.Core.BL.Models.People.Prospect prospect) { if (prospect.Need) { Button btn = this.FragmentView.FindViewById <Button>(Resource.Id.btnNeed); btn.SetBackgroundResource(Resource.Drawable.button_green); btn.SetTextColor(Color.White); } if (prospect.Authority) { Button btn = this.FragmentView.FindViewById <Button>(Resource.Id.btnAuthority); btn.SetBackgroundResource(Resource.Drawable.button_green); btn.SetTextColor(Color.White); } if (prospect.Money) { Button btn = this.FragmentView.FindViewById <Button>(Resource.Id.btnMoney); btn.SetBackgroundResource(Resource.Drawable.button_green); btn.SetTextColor(Color.White); } }
public override void SetData(string serializedString) { _personRegistrationInformation = JsonConvert.DeserializeObject <SalesApp.Core.BL.Models.People.Prospect>( serializedString); }