Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- using CnasSynchronusClient;
- using CnasSynchrousModel;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Windows.Forms;
-
- namespace CNASBalanceDBManage
- {
- static class Program
- {
- /// <summary>
- /// 应用程序的主入口点。
- /// </summary>
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
-
- SystemFormatConfig systemFormat = FileOperation.GetSystemFormatConfigData();
- GlobalCommonOperation.strStartGeneralVersion = systemFormat.StartGeneralVersion;
- GlobalCommonOperation.strStartWebApi = systemFormat.StartWebApi;
- GlobalCommonOperation.strWebApiUrl = systemFormat.WebApiUrl;
- GlobalCommonOperation.strTargetDbType = systemFormat.TargetDBType;
-
- // 检查是否已激活
- if (!(new ActivationForm()).CheckActivation())
- {
- // 未激活,显示激活窗口
- using (var activationForm = new ActivationForm())
- {
- if (activationForm.ShowDialog() == DialogResult.OK)
- {
- // 激活成功,显示主窗口
- Application.Run(new frmBalanceDB());
- }
- }
- }
- else
- {
- // 已激活,直接显示主窗口
- Application.Run(new frmBalanceDB());
- }
-
- }
- }
- }
|