Re: Command pattern: Interaction allowed?




It is perfectly OK to have the U/I present the dialog BEFORE calling the
command. In other words, the command is called by the U/I when the U/I is
certain that it wants the command to occur, and not before.


Aha, interesting. I didn't expect this answer. But don't you encounter
cases where this gets disadvantageous? Because of too much logic within
the UI? Consider also multiple UIs.

About my other assumption: What do you think about a design where the
UI solely triggers the business model. Do you think this is realistic?
Or is it a wrong assumption? Would be nice if I could clarify this for
my self.

.



Relevant Pages

  • Re: Command pattern: Interaction allowed?
    ... It is perfectly OK to have the U/I present the dialog BEFORE calling the ... the command is called by the U/I when the U/I is ... multiple UIs will have different ideas on when to ask ... key might find it necesary to confirm the action, whereas an interface ...
    (comp.object)
  • Re: Command pattern: Interaction allowed?
    ... the command calls a function that asks the user 'Are you sure?' ... What is not okay - I know. ... It is perfectly OK to have the U/I present the dialog BEFORE calling the ... programmer helping programmers. ...
    (comp.object)
  • Re: Call statements
    ... I have a fair amount of repetitive code, sometimes exactly what a command ... the code into that for reuse instead of calling the button. ... The only real "danger" in invoking controls in this manner, ... not only is it "best to separate Presentation ...
    (microsoft.public.vb.general.discussion)
  • Re: Problems call DataAdapter.Update and Concurrency
    ... I use a command builder for update command as I want to make use of the ... as soon as the data gets changed it causes a concurrency violation. ... calling the .fill and avoiding another trip to the database. ... By default the DataAdapter will call AcceptChanges on each succesfull ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Adept: Discwasher calling-four
    ... Instead, you insert Discwasher's Calling Four card into slot number seven of the Apple's main board, which is no problem at all if your Apple is accompanied by its manual. ... A connector from the expansion card then plugs into the spot where the joy stick, say, would normally plug into the computer, and the joy stick plug goes into the new card, along with those of any three other controllers you might want to use. ... True, only a single command is involved, but there are preliminaries to be attended to, and here the manual accompanying Calling Four begins to let the novice down. ...
    (comp.sys.apple2)