static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var providers = new List<IProvider>() { new LoggingProvider() }; var keysndr = new KeySndrApp(providers); keysndr.Run(); Application.Run(new Form1(keysndr)); }