this.querryObj.audioStreamClose();
this.saveFs.Close();
MessageBox.Show("传输文件时出错:" + ex.Message);
return;
}
if (audioByte[0] == 0)
{
this.querryObj.audioStreamClose();
this.saveFs.Close();
MessageBox.Show("读远程文件时出错");
return;
}
int readCount1 = (int)audioByte[2];//256的系数
int readCount2 = (int)audioByte[3];//256的余数
int readCount = readCount1 * 256 + readCount2;
if (readCount == 0)
{
return;
}
try
{
this.saveFs.Write(audioByte, 4, readCount);
}
catch (Exception ex)
{
this.querryObj.audioStreamClose();
this.saveFs.Close();
MessageBox.Show(ex.Message);
return;
}
}
}
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)//将查询的远程节目长度毫秒单位换成##:##:##格式
{
|