voile/Voile/Program.cs
2026-01-12 22:51:27 +01:00

29 lines
1.1 KiB
C#

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]
namespace Voile
{
internal static class Program
{
private static readonly log4net.ILog logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
logger.Info("Hello! This is Voile, an UI to skyscraper8.");
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
logger.Debug("Preparing main window...");
ApplicationConfiguration.Initialize();
Form1 form1 = new Form1();
logger.Debug("Unpacking cursor...");
Cursor hand = new Cursor(new MemoryStream(Voile.Properties.Resources.H_POINT));
form1.Cursor = hand;
logger.Debug("Main window showing.");
Application.Run(form1);
}
}
}