private void toolStripButton2_Click(object sender, EventArgs e) { DataRow r = this.ytTreeView1.getSelectRow(); Kind_Add ks = new Kind_Add(r, true); ks.pr = this; ks.ShowDialog(); }
private void toolStripButton5_Click(object sender, EventArgs e) { DataRow r = this.ytTreeView1.getSelectRow(); if (r != null) { tr = this.ytTreeView1.SelectedNode.Text; string[] strr1 = tr.Split('|'); tr = strr1[0]; tr = tr.Trim(); Kind_Add ks = new Kind_Add(r, false); ks.pr = this; ks.ShowDialog(); } else { WJs.alert("请选择要编辑的设备信息"); } }