x++ - How to make sure that a form is only opened once? -
Is it possible to ensure that a user can only open an instance of a specific form, for example CustTable to CustTable? Model form is not an option. Some types of singleton patterns?
You can use global cache for this, more information on MSDN. However, long time using global caches is a sign of bad design.
You can use global caches to apply a singleton pattern as shown here:
Consider alternative solutions to your problem, for example, catalog magazines Used when you open the lines for a journal, it is marked as "in use", so anyone can not open this special magazine
Side note: I believe that you Trying to take it is a small part of an anti-pattern. Dynamics uses Dianlinks to add XX form together. If you implement it, all these functionality will be lost.
Comments
Post a Comment