using System;
public class ImageConverter
{
public void button1_Click(Object sender, RoutedEventArgs e)
{
string filename=null;
SendImageToPlayer send = new SendImageToPlayer();
//send.ReadImageFile(filename);
Thread t = new Thread(new send.ReadImageFile);
uint ret=send.ErrorCode;
}
}
public class SendImageToPlayer
{
...
public void ReadImageFile(string PfileName)
{
//something
}
...
}
上面顯示的代碼不起作用。我想在單獨的線程中運行ReadImageFie。我怎樣才能做到這一點?另一類中帶參數的單獨線程運行方法