2025-03-27 15:05:14 +08:00

55 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using SuperMap.RealEstate.Windows.Utility;
namespace EndaccountManage
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[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);
}
}
}
}