Exemple #1
0
        public void Practice()
        {
            string           specialization;
            int              experience_years;
            PracticEventArgs fargs;

            try
            {
                Console.WriteLine("Enter specialization: ");
                specialization = Console.ReadLine();

                Console.WriteLine("Enter work experience year: ");
                experience_years = Int32.Parse(Console.ReadLine());

                fargs = new  PracticEventArgs(specialization, experience_years);
            }
            catch
            {
                fargs = new  PracticEventArgs();
            }
            Console.WriteLine("Practiser {0} is training staff...\n", name);
            if (PracticeEvent != null)
            {
                PracticeEvent((Practiser)this, fargs);
            }
        }
Exemple #2
0
 // Using "Clean code" rule
 // Недвусмысленые имена функции
 abstract public void CertificationTrainingSchoolStaff(Practiser f, PracticEventArgs fargs);
Exemple #3
0
 // Using "Clean code" rule
 // Недвусмысленые имена функции
 public override void CertificationTrainingSchoolStaff(Practiser f, PracticEventArgs fargs)
 {
     Console.WriteLine("Student can not train ");
 }