using Hik.Api; using Nancy.Hosting.Self; namespace xicheji { internal static class Program { public static MainForm MainForm { get; set; } /// /// The main entry point for the application. /// [STAThread] static void Main() { // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); HikApi.Initialize(); new NancyHost(new Uri($"http://localhost:{ConfigHelper.GetConfig().ServicePort}/")).Start(); MainForm = new MainForm(); Application.Run(MainForm); } } }