-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Mrinal
Message 2 in Discussion
Hi ,
This is pretty simple , your problem can be solved by Singleton pattern , whenever for
any form that u show as Non Modall on the screen , instead of calling it's constructor
directly implement a static method say GetInstance and a static HashTable object to
store key value pairs for forms instances , which will check for :
1. If Active Form is Null -- Create a new instance by calling normal constructor and
create a key value pair in Hash Table .
2. If Active Form is not Null , then Check for Relevant Key in HashTable , if it's
there then return it or else again call constructor and Add it
Also when u close a form delete key value pair from the hash table , else re opening
will be a problem .
Also if u make a separate Ui Process layer separate from the form to manage this
complexity then it will be good ,
if there's anything that u are not able to get , lemme know i can help u with the code
snippet ,
regards ,
Mrinal .
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]