You're jealous of my red caboose
MSNBC has a story on how toy trains are making a big come back. So if you are afraid that your #36 and #20 trains will accidentally run into one another, fear no longer. KAM Industries has a product that lets you run your own model train system using their software and be able to create custom applications. Their solution comes with a C# and VB.Net example code that works with Visual Studio Express. They provide extensive documentation so creating your rail yard automation will be smoother than riding Amtrak. If you register your copy of Visual Studio Express, you can save $10 dollars on the train tool software.