static void Main(string[] args) { var gm = new GameModel(); var view = new GameView(); var ctrl = new GameController(); view.Connect(gm, ctrl); Debug.WriteLine(view.Model.ID); }
static void Main(string[] args) { var gm = new GameModel() { ID = 1000 }; var view = new GameView(); var ctrl = new GameController(); view.Connect(gm, ctrl); Debug.WriteLine(view.Model.ID); // have access to the derived model and view }