protected override void btnOK_Click(object sender, EventArgs e) { base.btnOK_Click(sender, e); if (!string.IsNullOrEmpty(base.sValue)) { if (base.OrderCode == CmdParam.OrderCode.断电) { if (MessageBox.Show("操作将使车辆电路关闭,可能会造成严重后果\r\n确定发送断电命令吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK) { return; } AdminDiv div = new AdminDiv(); if (div.ShowDialog() != DialogResult.OK) { return; } } this.getParam(); base.reResult = RemotingClient.DownData_SimpleCmdEx(base.ParamType, base.sValue, base.sPw, CmdParam.CommMode.未知方式, this.m_SimpleCmdEx); if (base.reResult.ResultCode != 0L) { MessageBox.Show(base.reResult.ErrorMsg); } else { base.DialogResult = DialogResult.OK; } } }