Re: Data access from multiple code modules




Bruno Desthuilliers wrote:

Separating operations on data (model/controler) from GUI code (view).
The controler(s) have a reference on the model. The views have a
reference on the controler(s), and call on the controller to get data to
display or act on data.

So I instantiate a Model object that handles all IO to the database.
Next I instantiate a Controller object, passing it a reference to the
Data/IO model object. Next I instantiate the display panel objects for
the GUI, passing them references to the Controller object.

The Controller object contains the logic for all the transformations I
want to perform on the data.

Simon Hibbs

.



Relevant Pages

  • Re: MVC Question
    ... Each view must be *given* a reference to the model and it should ... there must be a way to handle inputs and events - the controller. ... Classic MVC should be called MVCO, ... All graphics apps I've worked with have had a separate math ...
    (comp.object)
  • Re: References problem
    ... This is, as the OP suggested, a reference problem. ... The override of the Dispose method that you suggest is not a workaround... ... it is the expectation. ... the controller can be tossed and a new one ...
    (microsoft.public.dotnet.framework)
  • Re: Simpler Than A Thermostat?
    ... than a conventional simple thermostat control. ... when the output is equal to or just above the reference ... The controller seems to be working. ... Several reference points [sensors] are closely spaced around the ...
    (sci.engr.control)
  • Re: Event 1202 every 5 minutes after removing IIS from a DC
    ... An IWAM account that no ... longer exists was referenced in the Domain Controller Policy. ... reference and the Event 1202 alerts stopped. ...
    (microsoft.public.win2000.group_policy)
  • Re: Event 1202 every 5 minutes after removing IIS on a DC
    ... An IWAM account that no longer ... exists was referenced in the Domain Controller Policy. ... reference and the Event 1202 alerts stopped. ...
    (microsoft.public.win2000.active_directory)