Ejemplo n.º 1
0
        public GUIController(GUIView view)
        {
            Serializer = new Serializer(this);
            Model = Serializer.Deserialize();
            if(Model == null) Model = new GUIModel();

            View = view;
            View.UpdateView(Model);
        }
Ejemplo n.º 2
0
        public DebugContext()
        {
            GUIView view = new GUIView();
            GUIController controller = new GUIController(view); //Controller is saved in view as reference
            view.RegisterController(controller);
            view.Visible = true;

            #if DEBUG
            GUIView view2 = new GUIView();
            GUIController controller2 = new GUIController(view2); //Controller is saved in view as reference
            view2.RegisterController(controller2);
            view2.Visible = true;
            #endif
        }