示例#1
0
文件: Program.cs 项目: rmc47/CamLog
        static void Main()
        {
            Controller = new UI.Controller();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new ContestForm());
        }
        // BUG: Fix bug in test 5.
        public static void Main()
        {
            ITestingSystemDatabase database = new ACDatabase();
            IController controller = new Controller(database);
            ICommandManager commandManager = new CommandManager(controller);
            IUserInterface ui = new ConsoleUserInterface();

            IEngine engine = new Engine(ui, commandManager);
            engine.Run();
        }