Question

I want to stop other Threads until the user provides input in this window... giving code that I have as such:

if (!File.Exists(@"DiscoveryConfig.bin"))
{
    Application.Current.Dispatcher.Invoke((showRangeInputWindow)delegate()
    {
        new WinSubnetRangeInput().Show();
    }, null);
}

Lets say the following code do a Ping scan of network nodes but first it opens a window to take a range. But, how to stop scanning until input is received in this window...

Could I do this by getting thread ID?

Was it helpful?

Solution

user .ShowDialog()

if you window is named secondRibbonWindow then use

secondRibbonWindow.showDialog();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top