diff --git a/BookAStar/BookAStar/Converters/RatingText.cs b/BookAStar/BookAStar/Converters/RatingText.cs new file mode 100644 index 00000000..3351fb77 --- /dev/null +++ b/BookAStar/BookAStar/Converters/RatingText.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xamarin.Forms; + +namespace BookAStar.Converters +{ + class RatingText : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + var rating = (int)value; + if (rating == 1) + return "Disappointed!"; + if (rating == 2) + return "Not a fan!"; + if (rating == 3) + return "It's Ok!"; + if (rating == 4) + return "Like it!"; + if (rating == 5) + return "Love it!"; + + return string.Empty; + } + + public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) + { + throw new NotImplementedException(); + } + + } +} diff --git a/BookAStar/BookAStar/Images/Validation/error.png b/BookAStar/BookAStar/Images/Validation/error.png new file mode 100644 index 00000000..9cc4d53d Binary files /dev/null and b/BookAStar/BookAStar/Images/Validation/error.png differ diff --git a/BookAStar/BookAStar/Images/Validation/star_outline.png b/BookAStar/BookAStar/Images/Validation/star_outline.png new file mode 100644 index 00000000..bc2a72f5 Binary files /dev/null and b/BookAStar/BookAStar/Images/Validation/star_outline.png differ diff --git a/BookAStar/BookAStar/Images/Validation/star_selected.png b/BookAStar/BookAStar/Images/Validation/star_selected.png new file mode 100644 index 00000000..29a3fa0c Binary files /dev/null and b/BookAStar/BookAStar/Images/Validation/star_selected.png differ diff --git a/BookAStar/BookAStar/Images/Validation/success.png b/BookAStar/BookAStar/Images/Validation/success.png new file mode 100644 index 00000000..3bb53d42 Binary files /dev/null and b/BookAStar/BookAStar/Images/Validation/success.png differ