コード例 #1
0
        internal void SetController(IControllerBase controller)
        {
            var newController = controller as ScrabbleController;

            if (newController != null)
            {
                this.scrabbleController = newController;
            }
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var model = new ScrabbleModel();

            var view = new FormMain();

            var controller = new ScrabbleController(model, view);

            controller.RenderView();
            Application.Run(view);
        }