Tour.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Globalization;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows.Media;
  9. namespace WpfAppHotel
  10. {
  11. public partial class Tour
  12. {
  13. public string TicetsCount => "Количество билетов: " + TicketCount;
  14. public string Costes => Price.ToString("N0", new CultureInfo("en-us")) + " руб.";
  15. public SolidColorBrush ColorTour
  16. {
  17. get
  18. {
  19. new SolidColorBrush(Color.FromRgb(111, 111, 111));
  20. SolidColorBrush propertyColor;
  21. if (IsActual == true)
  22. {
  23. propertyColor = new SolidColorBrush(Color.FromRgb(186, 227, 232));
  24. return propertyColor;
  25. }
  26. else
  27. {
  28. propertyColor = new SolidColorBrush(Color.FromRgb(227, 30, 36));
  29. return propertyColor;
  30. }
  31. }
  32. }
  33. }
  34. }