Waiting for button click

BeginnnnnerBeginnnnner Member ✭✭
edited January 22 in General

public void Application()
{
Method1(); // Lets say this will change color of something.
Method2(); // this method has the button defined and it generates random number and saves it to int HH for example <- I need to wait here until it generates the number and then continue with Method3
Method3(); // This has a switch (HH) and changes lets say text label (this method needs the generated number HH from button click in Method2())
}

ANY SUGGESTION HOW TO WAIT FOR GENERATED NUMBER AND AFTER GENERATING CONTINUE WITH METHOD3()?

Answers

Sign In or Register to comment.