Exemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder($"{Id}\t{Name,-20}\t\t{Acquired.ToString("D")}\t\t{Category.ToString()}\t{SubCategory}\t{InUse}");

            if (PartOf != null)
            {
                sb.Append($"\r\nPart of :\r\n{PartOf.ToMiniString()}");
            }
            if (Owner != null)
            {
                sb.Append($"\r\nOwner\r\n{Owner}");
            }
            return(sb.ToString());
        }
Exemplo n.º 2
0
 private string ToMiniString()
 {
     return($"{Id}\t{Name}\t\t{Acquired.ToString("D")}\t\t{Category.ToString()}\t{SubCategory}\t{InUse}");
 }