帮我看看下面C#的函数名是什么意思呢?解释一部分也都可以,我可以加分给你们,麻烦了。
publicdelegatevoidDataReceiveedDelegate(objectsender,EventArgse);privateSystem.Timers...
public delegate void DataReceiveedDelegate(object sender, EventArgs e);
private System.Timers.Timer DataReadTimer;
public partial class MainForm : Form;
private void panellegend_Paint(object sender, PaintEventArgs e);
private void pbDrawBox_Paint(object sender, PaintEventArgs e);
private void Calldatarecived(object sender, EventArgs e);
private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e);
private void panelDrawBox_Scroll(object sender, ScrollEventArgs e);
private void variableInit();
private void portcolorInti();
private void dialogInti();
private void colorset(); 展开
private System.Timers.Timer DataReadTimer;
public partial class MainForm : Form;
private void panellegend_Paint(object sender, PaintEventArgs e);
private void pbDrawBox_Paint(object sender, PaintEventArgs e);
private void Calldatarecived(object sender, EventArgs e);
private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e);
private void panelDrawBox_Scroll(object sender, ScrollEventArgs e);
private void variableInit();
private void portcolorInti();
private void dialogInti();
private void colorset(); 展开
1个回答
展开全部
我来试着解释一下,因为看不实现,只能看方法名称与参数了。
//声明一个委托,用于接收数据。
public delegate void DataReceiveedDelegate(object sender, EventArgs e);
//定义一个定时器,用来每隔一定时间接收一次数据
private System.Timers.Timer DataReadTimer;
//窗体类声明
public partial class MainForm : Form;
//控制panellegend,这是一个panel控件,定义了他的paint事件
private void panellegend_Paint(object sender, PaintEventArgs e);
//pbDrawBox,应该是一个下拉框控件,也定义了他的paint事件
private void pbDrawBox_Paint(object sender, PaintEventArgs e);
//这个应该是前面DataReceiveedDelegate这个委托,实际执行的方法,接收数据
private void Calldatarecived(object sender, EventArgs e);
//这个也是定义了一个数据接收的事件,(Handler一般是事件的后缀),但具体和Calldatarecived怎么用,没太理解
private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e);
//定义了panelDrawBox的Scroll事件,滚动
private void panelDrawBox_Scroll(object sender, ScrollEventArgs e);
//局部变量初始化
private void variableInit();
//协议初始化
private void portcolorInti();
//对话框初始化,没怎么理解
private void dialogInti();
//设置颜色,但具体为哪里设置属性看不出来
private void colorset();
//声明一个委托,用于接收数据。
public delegate void DataReceiveedDelegate(object sender, EventArgs e);
//定义一个定时器,用来每隔一定时间接收一次数据
private System.Timers.Timer DataReadTimer;
//窗体类声明
public partial class MainForm : Form;
//控制panellegend,这是一个panel控件,定义了他的paint事件
private void panellegend_Paint(object sender, PaintEventArgs e);
//pbDrawBox,应该是一个下拉框控件,也定义了他的paint事件
private void pbDrawBox_Paint(object sender, PaintEventArgs e);
//这个应该是前面DataReceiveedDelegate这个委托,实际执行的方法,接收数据
private void Calldatarecived(object sender, EventArgs e);
//这个也是定义了一个数据接收的事件,(Handler一般是事件的后缀),但具体和Calldatarecived怎么用,没太理解
private void DataReceivedHandler(object sender, SerialDataReceivedEventArgs e);
//定义了panelDrawBox的Scroll事件,滚动
private void panelDrawBox_Scroll(object sender, ScrollEventArgs e);
//局部变量初始化
private void variableInit();
//协议初始化
private void portcolorInti();
//对话框初始化,没怎么理解
private void dialogInti();
//设置颜色,但具体为哪里设置属性看不出来
private void colorset();
追问
太给力了,我还有其他问题,可以问你吗?
追答
嗯,可发我私信。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询