Example #1
0
 public void rheumatictests(patient p)
 {
     p.rheumatictests = true;
 }
Example #2
0
        static void Main(string[] args)
        {
            patient first = new patient();

            Hospital hospital = new Hospital();


            hospital.RenAndex(first);
            hospital.DisplayInfo(first);
            Console.WriteLine();
            hospital.CompleteProduct(first);
            hospital.DisplayInfo(first);

            //Задание 2
            List <Student> pd22Group = new List <Student>();

            pd22Group.Add(new Student("Vlad", "Osymak", 17));
            pd22Group.Add(new Student("Valera", "Bilous", 18));
            pd22Group.Add(new Student("Roma", "Oleksenko", 20));
            pd22Group.Add(new Student("Dana", "Prokopets", 19));
            pd22Group.Add(new Student("Valentyn", "Shovtenko", 21));
            pd22Group.Add(new Student("Dima", "Vdovin", 23));
            pd22Group.Add(new Student("Artem", "Ilushchenko", 24));
            pd22Group.Add(new Student("Bohdan", "Student", 50));
            pd22Group.Add(new Student("Vitalik", "Woloshyn", 44));
            pd22Group.Add(new Student("Edik", "Petrenko", 14));


            List <Student>           adults = new List <Student>();
            StudentPredicateDelegate spd;

            Console.WriteLine("\nТолько взрослые:");
            spd    = Student.Adult;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nСтуденты которые имеют первую букву «А»:");
            spd    = Student.FirstSymbolIsA;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nСтуденты которые имеют больше 3-х символов: ");
            spd    = Student.LongLastName;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nВзросыле через методы:");
            spd    = student => student.Age >= 18 ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nСтуденты которые имеют первую букву «А» через методы:");
            spd    = student => student.FirstName[0] == 'A' ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nСтуденты которые имеют больше 3-х символов через методы:");
            spd    = student => student.LastName.Length > 3 ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();


            Console.WriteLine("\n\n20-25 лет:");
            spd    = student => student.Age > 20 && student.Age < 25 ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nИщем Богдана:");
            spd    = student => student.FirstName == "Bohdan" ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();

            Console.WriteLine("\nИщем Артема:");
            spd    = student => student.LastName == "Ilushchenko" ? true : false;
            adults = pd22Group.FindStudent(spd);
            adults.DisplayList();
        }
Example #3
0
 public void Ultrasound(patient p)
 {
     p.Ultrasound = true;
 }
Example #4
0
 public void examinationlor(patient p)
 {
     p.examinationlor = true;
 }
Example #5
0
 public void Ren(patient p)
 {
     p.Ren = true;
 }
Example #6
0
 public void CT(patient p)
 {
     p.CT = true;
 }
Example #7
0
 public void MRT(patient p)
 {
     p.MRT = true;
 }