39 lines
949 B
C#
39 lines
949 B
C#
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;
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[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();
|
|
//}
|
|
}
|
|
}
|
|
}
|