using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using SuperMap.RealEstate.Windows.Utility; namespace SocketTransfer { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { //判断是否已有实例运行 if (ApplicationHelper.ExistsProcess("SocketTransfer", "")) { MessageBox.Show("不可重复打开!"); return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Sender()); } } }