//呵呵,两行代码就可以了...

using System.Threading; //导入命名空间,类Thread就在此空间中
 
Thread.Sleep(10000);

本文转载:CSDN博客