Exemple #1
0
 public void Rise(object src, DawnEventArgs dea)
 {
     if (dea.MorningWeather == Weather.Sunny)
     {
         Console.WriteLine("Rising");
     }
     else
     {
         Console.WriteLine("No sun for you today!");
     }
 }
Exemple #2
0
 public void Crow(object src, DawnEventArgs dea)
 {
     if (dea.MorningWeather == Weather.Sunny)
     {
         Console.WriteLine("C**k-a-doodle");
     }
     else
     {
         Console.WriteLine("Sleep in");
     }
 }