Hello,
One problem occured in my developed Mobile Application which has very
negative impact on the performance and is a very bad solution. I want to
explain my problem with an example because otherwise it is very difficult to
explain for me. My appication has a MainMenu were different Jobs are listed.
When I want to see further details to a certain Job I have to mark the
certain job and then the details would be displayed by the Details-Form. Now
I have implemented it in that way that every time the user chooses another
job to look for details a new Details-Form is created and displayed. But this
is a very bad solution. I tried it like in the MSDN article with a Global
class which contains an instance of every form and these instances are always
used if the corresponding form is needed. This works with the following code:
if(Global.details ==null)
{
Global.details = new Details();
}
Global.details.Show();
The problem with this technique is that when I choose a new Job in my
MainMenu the Details-Form is always displayed with the details of the
previous choosed Job. Thus the Global.details form is only displayed and not
modified in any way. Does anybody approximately know what I mean and know a
solution? :-/
Best Regards
patrick