using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Windows.Forms; namespace CashierPrint { static class Program { //private static Mutex mutex; /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //mutex = new Mutex(true, "PrintOnlyRun"); //if (mutex.WaitOne(0, false)) //{ if (args.Count() > 0) { Application.Run(new Print(args)); } else { Application.Exit(); } //} //else //{ // Application.Exit(); //} } } }