protected virtual void OnAnimalEvent(iAnimal animal) { if (animalEvent != null) { animalEvent(this, new AnimalEventArg() { animal = animal }); } }
public Fluffy(iAnimal decorated) : base(decorated) { }
public void AddToZooparck(iAnimal animal) { zooPark.Add(animal); }
public void FeedCow(iAnimal cow) { Console.WriteLine("Feed cow"); }
public void CleanCat(iAnimal cat) { Console.WriteLine("clean cat"); }
public void FeedCat(iAnimal cat) { Console.WriteLine("Feed cat."); }
public void PerformAnimalCare(iAnimal animal, Action <iAnimal> nameHandler) { nameHandler(animal); }
public void StartAnimalEvents(iAnimal animal) { OnAnimalEvent(animal); }
public void PerformAnimalCare(iAnimal animal, AnimalCareHandler nameHandler) { nameHandler(animal); }
public Fat(iAnimal decorated) : base(decorated) { }
public AnimalDecorator(iAnimal decorated) { this.decorated = decorated; }
public Mean(iAnimal decorated) : base(decorated) { }