111,098
社区成员




private void Button_Click_4(object sender, RoutedEventArgs e)
{
//turning
int isornotsuccess = 0;
Task.Delay(50000);
ImformationText.Text = null;
ImformationText.Text += String.Format("\r\nwe have released if you input the wave-number,or release 100-band if you not. . . .\r\n");
ThreadPool.QueueUserWorkItem((object o) =>//这后面一长串是一个语句,一个线程
{
myout.Result = " calling the function....";
Task.Delay(200000);
int bandnum = 0;
if (Convert.ToInt32(myout.Waveband) < 128 && Convert.ToInt32(myout.Waveband)>= 0)
{
bandnum=Convert.ToInt32(myout.Waveband);
}
else
{
bandnum = 100;
}
isornotsuccess = MyTurnImageDll.MyTurnImage(exportpath, importpath, bandnum);
if (isornotsuccess == 1)
{
myout.Result = "turnning success";
}
});
}