1234567891011121314151617181920212223242526272829303132333435 |
- 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;
- }
- }
- }
- }
- }
|