Esempio n. 1
0
 public static ComputerData Get()
 {
     if (ComputerData._computer == null)
     {
         ComputerData._computer = new ComputerData();
     }
     return(ComputerData._computer);
 }
Esempio n. 2
0
        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());
        }