Ok i\'m begginer at coding
So what i\'m trying to do is button who gonna wait for
the user to click on one of the multiple other button to continue
v
Try something like this:
bool gotResponse = false;
//you need to run MainTask in a different thread
Thread thread = new Thread(new ThreadStart(DoWork));
thread.Start();
void DoWork()
{
//do some work
//when something else needed from user then popup message
MessageBox.Show("say whatever you need to say");
while(!gotResponse)
{
//note: this loop doesn't stop until gotResponse = true;
}
//do rest of your work
}
private button_Click(object sender, RoutedEventArgs e)
{
gotResponse = true;
}