private void butApply_Click(object sender, EventArgs e) { try { JStationConfig stationConfig = new JStationConfig(); if (cbxHspCode.SelectedValue != null) { stationConfig.当前院区编码 = cbxHspCode.SelectedValue.ToString(); } if (cbxDepartment.SelectedValue != null) { stationConfig.站点所属科室 = cbxDepartment.SelectedValue.ToString(); } if (cbxRoom.SelectedValue != null) { stationConfig.站点所属房间 = cbxRoom.SelectedValue.ToString(); } if (cbxDevice.SelectedValue != null) { stationConfig.当前检查设备 = cbxDevice.SelectedValue.ToString(); } if (cbxStorage.SelectedValue != null) { stationConfig.当前存储设备 = cbxStorage.SelectedValue.ToString(); } _scm.SetStationInfo(stationConfig, _computerName); ButtonHint.Start(butApply, "OK"); } catch (Exception ex) { MsgBox.ShowException(ex, this); } }