P
Piotr Ryszkiewicz
Guest
I am sorry you started to fight because of my question
Some more explanation: the form needs data in some specific code lists to be able to start. This is the part of it's logic. In normal circumstances these data should be there, but I should cover non-standard situations as well. So if the data is not there, the form should not start. Testing this outside the form does not make sense for me, because then the caller should know the logic which is specific to this form itself. My current solution, based on the anserws I got till now is following: In the form constructor I just set logical variable telling me if all required data is available. Then, in ShowModalDialog method in the form I test this variable and do not WAIT-FOR ShowDialog if it is false. In Load method I call Close if variable is false. Of course I am still open for suggestions if it can be done in better way, but putting this logic outside the form is really not the way I'd like to go.
Continue reading...
Continue reading...