private void simpleButton2_Click(object sender, EventArgs e) { if (ctrlPSP_PlanList1.FocusedObject == null) { MessageBox.Show("请选择记录。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } frmLineList1 frm = new frmLineList1(); frm.Eleid = ctrlPSP_PlanList1.FocusedObject.UID; frm.Show(); //frmPengFenLine f1 = new frmPengFenLine(); //f1.ShowDialog(); }