Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- 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());
- }
-
- }
- }
- }
|