public static ComputerData Get() { if (ComputerData._computer == null) { ComputerData._computer = new ComputerData(); } return(ComputerData._computer); }
static void Main() { ComputerData.Get(); HostConfiguration config = new HostConfiguration(); config.RewriteLocalhost = true; var host = new NancyHost(config, new Uri(Config.Get().ApiHost)); host.Start(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }