コード例 #1
0
ファイル: Form1.cs プロジェクト: jeffjuan/Design_pattern_MVC
 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);
        }