Program.cs
1.1 KB
using CodeLibrary;
using Common;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using log4net.Config;
namespace CodeTest
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
XmlConfigurator.Configure();
// CodeCreater.CreateCode(10);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
HDCodeLearnHelper.LoadConfig(ConfigAppSettings.GetValue(Setting_Init.CameraName), ConfigAppSettings.GetValue(Setting_Init.CodeType));
CodeResourceControl.GetLanguageEvent += CodeResourceControl_GetLanguageEvent;
Application.Run(new FrmCodeDecode());
////Application.Run(new FrmTest());
}
private static string CodeResourceControl_GetLanguageEvent()
{
return CodeResourceControl.China;
}
}
}