Exemplo n.º 1
0
        public GUIMainController(GUIMainView view)
        {
            Serializer = new Serializer(this);
            Model = Serializer.Deserialize();
            if(Model == null) Model = new GUIModel();

            View = view;
            View.UpdateView(Model);
        }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GUIMainView view = new GUIMainView();
            GUIMainController controller = new GUIMainController(view); //Controller is saved in view as reference
            view.RegisterController(controller);

            Application.Run(view);
        }