开发者

stop current thread until input is received from another window wpf C#

开发者 https://www.devze.com 2022-12-09 20:39 出处:网络
I want to stop other Threads until the user provides input in this window... giving code that I have as such:

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开发者_StackOverflow is received in this window...

Could I do this by getting thread ID?


user .ShowDialog()

if you window is named secondRibbonWindow then use

secondRibbonWindow.showDialog();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号