是否需要声明?该怎么声明?
public void InitClient() //窗体控件已在初始化{
interfaceUpdateHandle = new HandleInterfaceUpdateDelegate(btnSend_Click); //实例化委托对象
spSend.Open(); //SerialPort对象在程序结束前必须关闭,在此说明
spReceive.DataReceived += Ports.SerialDataReceivedEventHandler(spReceive_DataReceived);
spReceive.ReceivedBytesThreshold = 1;
spReceive.Open();
}
显示错误为
错误 1 当前上下文中不存在名称“Ports” ,不知道怎么改