using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; using SuperMap.RealEstate.Windows.Utility; namespace EndaccountManage { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { //判断是否已有实例运行 if (ApplicationHelper.ExistsProcess("EndaccountManage")) { return; } string _ModuleGuid = "0cff14d5-b27b-4d18-b0a2-efca06c9b898"; #if DEBUG string _UserName = "system"; string _Password = "system"; #else string _UserName = ""; string _Password = ""; #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); try { if (args.Length > 0) { //正式发布 Application.Run(new Form1(_ModuleGuid, args)); } else { //调试模式 Application.Run(new Form1(_ModuleGuid, _UserName, _Password)); } } catch (Exception ex) { MessageBox.Show(ex.Message); } } } }