Frohes Fest
24. Dezember 2015
0 Kommentare
private static void Main(string[] args)
{
My.LifeTime.RegisterEvent("2015-12-24", StartChristmas);
}
private static void StartChristmas()
{
MakeMeHappy();
FinishWorking();
GoHome();
}
private static void MakeMeHappy()
{
My.Mood = Moods.Happy;
}
private static void FinishWorking()
{
My.Work.Colleagues.ForEach(SendChristmasGreeting);
My.Work.Stop();
}
private static void GoHome()
{
My.Location.StartMovingTo(Locations.Home).By(Vehicles.Car);
}
private static void SendChristmasGreeting(Person person)
{
person.SendEmail("Frohe Weihnachten");
}