using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace SneakersSkakunov { public partial class Sneakers { public SolidColorBrush ColorSneak { get { if (Colors == "Black") { return new SolidColorBrush(Color.FromRgb(120, 120, 120)); } else if (Colors == "White") { return Brushes.White; } else if (Colors == "Red") { return Brushes.IndianRed; } else { return Brushes.Beige; } } } } }