public void UnRegister(Timer ring)
 {
     ring.TimerRing -= RingTimer;
 }
 private void RegisterTimer(Timer timer)
 {
     timer.TimerRing += (obj,e) => Console.WriteLine("{0} Go to eat Animal",e.AnyMessage);
 }
 public void Register(Timer ring)
 {
     ring.TimerRing += RingTimer;
 }
 public Animal(Timer timer,string name = "Tuzik", string breed = "Dog")
 {
     Name = name;
     Breed = breed;
     RegisterTimer(timer);
 }