Example #1
0
        /// <summary>
        /// Сформировать информацию о ребенке
        /// </summary>
        /// <returns></returns>
        public override string FormInfoAboutPerson()
        {
            var infoAboutPerson = base.FormInfoAboutPerson() +
                                  $"\nНазвание детского сада или школы: " +
                                  $"{KindergardenOrSchool}";

            if (Mother != null)
            {
                infoAboutPerson += $"\nМать:" +
                                   $" {Mother.FormShortInfoAboutPerson()}";
            }

            if (Father != null)
            {
                infoAboutPerson += $"\nОтец:" +
                                   $" {Father.FormShortInfoAboutPerson()}";
            }

            return(infoAboutPerson);
        }