コード例 #1
0
        public NemoController(NemoModel model, NemoForm view)
        {
            this.Model = model;
            this.View  = view;

            this.Model.CreateNewBoard(5, 5, this.View.GetBoardWidth(), this.View.GetBoardHeight());
            this.View.SetInfoText(this.Model.GetInfoIdle());
            this.ResetGame();
            this.SubscribeView();
        }
コード例 #2
0
        static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            NemoForm       form       = new NemoForm();
            NemoModel      model      = new NemoModel();
            NemoController controller = new NemoController(model, form);

            Application.Run(form);
        }