Hi,
I have nearly
done my 'Proof of Concept' app, as far as nRoute is involved, but there is still
a point open.
How can I stop
the app?
I take a look at
the FuturDesktop app and as far as I found out, there is a button and within
it's event handler in the code behind file (==UI layer) a the Close-method of
the main window is called.
First of all,
there will be some code necessary to safely close down an app, so this button
should call a method of the associated VM first.
Second, I want to
close down my app safely, after some time of hanging around without usage. Its
also a security option we have to take. So I need a way to close down
programatically.
Third, the
concept, that views depending on VM's but NOT other way round is the big
advantage of MVVM over other patterns, so I would not break this by adding some
hack which allows me to call the Close method of my main window from some
VM.
Any idea
around?
Thanks
Gerhard