Beispiel #1
0
 protected virtual void OnAnimalEvent(iAnimal animal)
 {
     if (animalEvent != null)
     {
         animalEvent(this, new AnimalEventArg()
         {
             animal = animal
         });
     }
 }
Beispiel #2
0
 public Fluffy(iAnimal decorated) : base(decorated)
 {
 }
Beispiel #3
0
 public void AddToZooparck(iAnimal animal)
 {
     zooPark.Add(animal);
 }
Beispiel #4
0
 public void FeedCow(iAnimal cow)
 {
     Console.WriteLine("Feed cow");
 }
Beispiel #5
0
 public void CleanCat(iAnimal cat)
 {
     Console.WriteLine("clean cat");
 }
Beispiel #6
0
 public void FeedCat(iAnimal cat)
 {
     Console.WriteLine("Feed cat.");
 }
Beispiel #7
0
 public void PerformAnimalCare(iAnimal animal, Action <iAnimal> nameHandler)
 {
     nameHandler(animal);
 }
Beispiel #8
0
 public void StartAnimalEvents(iAnimal animal)
 {
     OnAnimalEvent(animal);
 }
Beispiel #9
0
 public void PerformAnimalCare(iAnimal animal, AnimalCareHandler nameHandler)
 {
     nameHandler(animal);
 }
Beispiel #10
0
 public Fat(iAnimal decorated) : base(decorated)
 {
 }
Beispiel #11
0
 public AnimalDecorator(iAnimal decorated)
 {
     this.decorated = decorated;
 }
Beispiel #12
0
 public Mean(iAnimal decorated) : base(decorated)
 {
 }