```` Thread thre = new thread(()=> { mainwindow md = new mainwindow(); md.ShowDialog(); md.Closed+=(s,e)=> md.dispatcher.InvokeShutdown(); Dispatcher.Run() }); thre.SetApartmentState(ApartmentState.STA); thre.Start();```
new Thread(()=> { rsult= getItemID("44"); Dispatcher.BeginInvoke( new ThreadStart(()=>{ if(rsult==0) {} }); }).Start(); } ````
ShowDialog
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)