2007-03-12 実行時かデザイン時か判別する http://homepage1.nifty.com/rucio/main/dotnet/Samples/Sample073DesignMode.htm