Information générale
Catégorie:
Gestionnaire d'écran & Écrans
It is keeping track of the number of instances of a toolbar. The form calls the application class which instantiates the toolbar and store the value of 1 to a property in the application class. Next time I use a form using the same toolbar it calls the application class see that the counter is greater than 1 so need to instantiate and increments the counter to 2. Then in the unload of the form it calls a method in application class which release the toolbar if the counter is equal to zero otherwise it stays. In each of the click event it calls methods in the form such as _screen.active.movenext(). I just need some way to keep track of move than one toolbar.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement