Static Capabilities for a User-Defined Type
Hi
My project deals with a drinks machine
I have one event(button click) that gets an information regarding the chosen drink.
I then have another event ( another button click) , which summerizes the selection - i.e , makes the choice final.
I need to pass on the drink entity that was chosen, to the second event.
I thought about using the drink type as static,and then access it via any event ( meaning, Drink.drinkname or something like that) , ubt I am not familiar with this option.
To sum things up-since I don't have global variables in c# , how do I pass information regarding an entity from one button click to another?
Thanks for your help
Goz