using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Markup;

namespace KlassenBIB
{
    /// <summary>
    /// 
    /// </summary>
    public class Sanierungskonzept
    {
        string anweisung;
        
        /// <summary>
        /// Anweisung zur Darstellung vom Art des Reparatur
        /// </summary>
        public string Anweisung
        {
            get
            {
                return anweisung;
            }
            set
            {
                anweisung = value;
            }
        }
        /// <summary>
        /// Die Reparatur
        /// </summary>
        public Reparatur Reparatur { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            string result = "";

            bool sanVorhanden = Reparatur != null;

            bool sanAbgeschlossen = (sanVorhanden && Reparatur.Fertig);

            result = string.Format("{0} abgeschlossen : {1}", Anweisung, sanAbgeschlossen);

            return result;
            
        }

    }
}
