摘要:
在窗体类的最外面定义一个委托:public delegate void SelectPointHandler(object sender, PointObject point);pointobject为传递的参数在窗体的事件下:private void btnOK_Click(object sender, EventArgs e) {。。。。。。。 if (SelectedPoint != null) SelectedPoint(this, point); } public event SelectPointHan... 阅读全文
摘要:
private void btnAnalyze_Click(object sender, EventArgs e) { if (treeList1.Nodes.Count < 2) { XtraMessageBox.Show("请选择至少两个节点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } labelControl1.Visible = true;... 阅读全文