Example #1
0
 static void Main(string[] args)
 {
     IODoctor.InputDoctor(out Doctor doctor);
     IODoctor.OutputDoctor(doctor);
     IOPacient.InputPacient(out Pacient pacient, doctor);
     IOPacient.OutputPacient(pacient);
 }
Example #2
0
 public static void OutputPacient(Pacient pacient)
 {
     WriteLine("+Пациент+");
     WriteLine($"Название -{pacient.Name }");
     WriteLine($"Дата начала лечения - {pacient.BeginOfMedical.ToLongDateString()}");
     WriteLine($"Заболевание - {pacient.Disease}");
     WriteLine();
     WriteLine($"+Лечащий врач+");
     IODoctor.OutputDoctor(pacient.Doctor);
     ReadKey();
     Clear();
 }