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
 public override void Training(Practiser f, PracticEventArgs fargs)
 {
     Console.WriteLine("Student can not train ");
 }
Exemple #3
0
 abstract public void Training(Practiser f, PracticEventArgs fargs);