internal void SetController(IControllerBase controller) { var newController = controller as ScrabbleController; if (newController != null) { this.scrabbleController = newController; } }
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); }