private void butModify_Click(object sender, EventArgs e) { try { if (txtQueueName.Tag == null) { MessageBox.Show("请选择需要修改的队列信息。", "提示"); return; } QueueData queueData = GetSelectQueueData(); if (queueData == null) { MessageBox.Show("未获取到有效的队列信息。", "提示"); return; } if (Verify(true) == false) { return; } queueData.队列名称 = txtQueueName.Text; queueData.队列信息.号码前缀 = txtPrefix.Text; queueData.队列信息.号码长度 = Convert.ToInt32(txtNoLen.Text); queueData.队列信息.播放站点 = txtCallStation.Text; queueData.队列信息.呼叫格式 = rtbCallFormat.Text; queueData.队列信息.是否禁用 = chkStopUse.Checked; queueData.队列信息.备注 = txtDes.Text; queueData.队列信息.CopyBasePro(queueData); _qm.UpdateQueueInfo(queueData); listView1.SelectedItems[0].SubItems[0].Text = txtQueueName.Text; listView1.SelectedItems[0].SubItems[1].Text = txtDes.Text; ButtonHint.Start(sender as Button, "OK"); } catch (Exception ex) { MsgBox.ShowException(ex, this); } }