27 lines
688 B
C#
27 lines
688 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WpfApp1
|
|
{
|
|
public class Coach
|
|
{
|
|
public string Surname { get; set; }
|
|
public string Name { get; set; }
|
|
public string Patronymic { get; set; }
|
|
public string Speciality { get; set; }
|
|
public string ShortFIO
|
|
{
|
|
get
|
|
{
|
|
string n = !string.IsNullOrEmpty(Name) ? $"{Name[0]}." : "";
|
|
string p = !string.IsNullOrEmpty(Patronymic) ? $"{Patronymic[0]}." : "";
|
|
return $"{Surname} {n}{p}";
|
|
}
|
|
}
|
|
public Coach() { }
|
|
}
|
|
}
|