private void butSure_Click(object sender, EventArgs e) { try { switch (cbxFindType.Text) { case "患者姓名": case "排队号码": _dtLineupInfos = _qm.FindLineupInfos(_departmentId, cbxFindType.Text, txtValue.Text); break; default: return; } _isOk = true; this.Close(); } catch (Exception ex) { MsgBox.ShowException(ex, this); } }