static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ICommand command = new ACommandImplementation(); Form1 mainForm = new Form1(command); Application.Run(mainForm); }