Closing a view on load

Topics: CAB & Smart Client Software Factory
Dec 30, 2006 at 11:16 AM
originally posted by: bil_simser

Just wondering the best way to do something. I have a view that in the OnLoad method will invoke the presenter.OnViewReady. In the presenter I'm loading up things from the domain/backend, etc. In some cases the user can't proceed (maybe a service is down or the criteria for finding something isn't set yet) so I want to inform the user and kill off the view. Not sure the best way to do this as I'm in the presenter.OnViewReady and doing something like just closing the view is abrupt (and doesn't seem to work because the view hasn't completely loaded yet). Would I kill off the workitem? Looking for an idea here on how to proceed. Thanks.