Example #1
0
 public Form1(PlayerModel model, PlayerController controller)
 {
     InitializeComponent();
     this.model = model;
     this.controller = controller;
     model.RegisterView(this);
 }
Example #2
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            PlayerModel model = new PlayerModel();
            PlayerController controller = new PlayerController(model);
            Application.Run(controller.view as Form1);
        }
 public PlayerController(PlayerModel playerModel)
 {
     model = playerModel;
     view = new Form1(model, this);
 }