示例#1
0
 public Form1(PlayerModel model, PlayerController controller)
 {
     InitializeComponent();
     this.model = model;
     this.controller = controller;
     model.RegisterView(this);
 }
示例#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);
        }