38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using log4net;
|
|
using Voile.Common.Logging;
|
|
using Voile.Common.Logging.Sinks;
|
|
|
|
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config")]
|
|
namespace Voile
|
|
{
|
|
internal static class Program
|
|
{
|
|
private static VoileLogger logger;
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
VoileLogManager.GetInstance().AddSink(VoileConsoleSink.GetInstance());
|
|
if (logger == null)
|
|
{
|
|
logger = VoileLogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
|
}
|
|
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);
|
|
}
|
|
}
|
|
} |