日期:2014-05-17 浏览次数:20987 次
/////////////
////////前面通过这个事件激活winform这边的处理函数ShowData()
KindsFunction.SendDat += new KindsFunction.SendDatDelegate(ShowData);
/////////////
private delegate void ShowTextDelegate(double[] Dat);
private void ShowData(object Dat)
{
{
if (this.InvokeRequired)
{
double[] data = null;
data = (double[])Dat;//传过来的数据
object[] obj ={ data };
//异步调用委托
this.BeginInvoke(new ShowTextDelegate(ShowText), obj);
}
else
{
//ShowText_short(data_short);
//ShowText_byte(data_byte);
}
}
}
string SubTag;
string GraphType = "array";
//界面上的控件处理
private void ShowText(double[] Dat)
{
try
{
foreach (Control temp in this.Controls)///遍历整个控件