日期:2014-05-17 浏览次数:20880 次
Thread TRec;
private void DataRecording_Load(object sender, EventArgs e)
{
TRec = new Thread (recording );
TRec.IsBackground = true;
TRec.Start(textBox1.Text );
}
bool flag = true;
//委托
private delegate void rec(string s);
private void recording()
{
if (InvokeRequired)
{
Invoke(new rec(Msg ));
}
else
{
if (mainys.alive == true)
{
while (flag)
{
for (int i = 0; i < mainys.ArrStrMsgID.Count; i++)
{
Msg(mainys.ArrStrMsgID[i].ToString() + "收到了" + mainys.Arrnum[i] + "个文件,接收时间为:");
foreach (object a in mainys.ArrRec)