34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace DrawGraphManagement
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Task.Factory.StartNew(() => { PreLoad(); });
|
|
Application.Run(new Main());
|
|
}
|
|
static void PreLoad()
|
|
{
|
|
string msg = DCSoft.Writer.Controls.WriterControl.CheckSystemEnvironment(false);
|
|
if (msg != null)
|
|
{
|
|
MessageBox.Show(null, msg, "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
return;
|
|
}
|
|
// 预先初始化一些数据
|
|
DCSoft.Writer.WriterAppHost.PreloadSystem();
|
|
DCSoft.Writer.Controls.WriterControl.StaticSetRegisterCode(AIMSExtension.PublicMethod.Decrypt(Properties.Resources.C));
|
|
}
|
|
}
|
|
}
|