Exemplo n.º 1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppModel model = new AppModel();

            model.LoadSettings();
            AppContext    context    = new AppContext();
            AppController controller = new AppController();

            controller.Connect(context, model);
            context.Connect(model, controller);
            controller.StartApp();
            Application.Run(context);
        }
 public void Connect(AppModel model, AppController controller)
 {
     this.model      = model;
     this.controller = controller;
     form.Connect(model, controller);
 }