29 lines
899 B
C#
29 lines
899 B
C#
namespace eCIAv2.WindowsApp
|
|
{
|
|
internal static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
string configDir = @$"{Application.StartupPath}Config";
|
|
//raed log4net configs
|
|
if (LogXnet.ReadConfig(@$"{configDir}/LogXnetConfig.json") == true)
|
|
{
|
|
LogXnet.WriteLine("LogXnet Init Success");
|
|
}
|
|
else
|
|
{
|
|
Console.WriteLine("LogXnet Init Failed");
|
|
return;
|
|
}
|
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
// see https://aka.ms/applicationconfiguration.
|
|
ApplicationConfiguration.Initialize();
|
|
Application.Run(new MainForm());
|
|
}
|
|
}
|
|
} |