Beispiel #1
0
        public bool DropSalary(Doctor doc)    // by count of patients
        {
            List <Patient> patients = doc.ShowPatients();
            bool           drop     = false;

            if (patients.Count <= 2)
            {
                doc.Salary -= 10000;
                drop        = true;
            }
            return(drop);
        }
Beispiel #2
0
        public bool RiseSalary(Doctor doc)    // by count of patients
        {
            List <Patient> patients = doc.ShowPatients();
            bool           rise     = false;

            if (patients.Count >= 4)
            {
                doc.Salary += 25000;
                rise        = true;
            }
            return(rise);
        }