using Avalonia.Platform; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TourAgent.Models { public partial class Tour { //public Bitmap GetPic //{ // get // { // //Bitmap pic = null; // /*pic = new Bitmap(AssetLoader.Open(new Uri($"avares://ToutAgent/Assets/Туры фото/{Name.ToString()}.jpg"))); // if(pic != null ) // { // return pic; // } // else // {*/ // return new Bitmap("Assets/Pictures/pic.png"); // //} // } //} public string GetActual { get { if (IsActual[0] == true) { return "Актуален"; } else { return "Не актуал"; } } } } }