Пример #1
0
 public string[] ToArray()
 {
     string[] data = new string[]
     {
         PESEL, Name, Surname,
         DateOfBirth.ToShortDateString(), Title, Specjalizations,
         DateOfEmployment.ToShortDateString(),
         DateOfDissmiss.Year == 1 ? "" : DateOfDissmiss.ToShortDateString()
     };
     return(data);
 }
Пример #2
0
        public override string ToString()
        {
            StringBuilder text = new StringBuilder();

            text.Append(base.ToString() + "\n");
            text.Append("Tytul: " + Title + "\n");
            text.Append("Gabinet: " + Cabinet + "\n");
            text.Append("Data zatrudnienia: " + DateOfEmployment.ToShortDateString() + "\n");
            text.Append("Data zwolnienia: " + DateOfDissmiss.ToShortDateString() + "\n");
            text.Append("Specjalizacje: " + Specjalizations);

            return(text.ToString());
        }