50 lines
1.3 KiB
C#
50 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using System.Deployment.Application;
|
|
using SuperMap.RealEstate.Windows.Utility;
|
|
|
|
namespace SuperMap.RealEstate.SecurityDevice.Manager
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
string _ModuleGuid = "459a1f17-c446-41c7-a52b-5cb63c6ca39f";
|
|
#if DEBUG
|
|
string _UserName = "system";
|
|
string _Password = "system";
|
|
#else
|
|
string _UserName = "";
|
|
string _Password = "";
|
|
#endif
|
|
|
|
try
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
//正式发布
|
|
Application.Run(new frmMain(_ModuleGuid, args));
|
|
}
|
|
else
|
|
{
|
|
//调试模式
|
|
Application.Run(new frmMain(_ModuleGuid, _UserName, _Password));
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|