2025-03-28 09:49:56 +08:00

49 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SuperMap.RealEstate.Launcher_WinForm;
using System;
using System.Windows.Forms;
namespace Launcher.TestApp
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
#if DEBUG
args = new string[7];
args[0] = "http://localhost:8081";
//参数是加密的,避免中间出现空格等特殊字符
args[1] = "Arguments:68AE6B5DD7AAC86C";
args[2] = "PassportGuid:";
args[3] = "UserName:System";
args[4] = "Module_ID:";
args[5] = "ProInst_ID:";
args[6] = "NowActInst_ID:";
#endif
try
{
LauncherHelper.SetMessageValue("测试 TestApp发出的消息");
//普通页
Application.Run(new frmMainBase(args));
//登录页
Application.Run(new frmMainValid(args));
//模块页
string _ModuleGuid = "6688ea54-6b87-433b-91ff-296e689cd6cf";//模块标识(这里用了OracleTransferBuilder的标识做演示)
Application.Run(new frmMainModule(_ModuleGuid, args));
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}