private void btnSetting_Click(object sender, EventArgs e) { map.Clear(); String stime = this.txtTime.Text; if (stime != "") { map.Add(PARAM_STIME, stime); } String period = this.txtHibernate.Text; if (period != "") { map.Add(PARAM_PERIOD, period); } // ds.wakeUpCasicDev(dev); bool isSuccess = ds.sendDeviceInfo(dev, map); if (!isSuccess) { MessageBox.Show("设备未唤醒,请重新下发"); } }
private void buttonX1_Click(object sender, EventArgs e) { map.Clear(); String intr = this.txtIntr.Text; if (intr != "") { map.Add(PARAM_ITR, intr); } String cnt = this.txtCnt.Text; if (cnt != "") { map.Add(PARAM_CNT, cnt); } String rept = this.txtRep.Text; if (rept != "") { map.Add(PARAM_REPT, rept); } String rst = this.txtRst.Text; if (rst != "") { map.Add(PARAM_RESET, rst); } String height = this.txtHeight.Text; if (height != "") { map.Add(PARAM_HEIGHT, height); } String per = this.txtPer.Text; if (per != "") { map.Add(PARAM_PERIOD, per); } // ds.wakeUpCasicDev(dev); bool isSuccess = ds.sendDeviceInfo(dev, map); if (!isSuccess) { MessageBox.Show("设备未唤醒,请重新下发"); } }
private void btnCal_Click(object sender, EventArgs e) { map.Clear(); String devCode = this.txtDevCode.Text; if (devCode != "") { map.Add(PARAM_DEVCODE, devCode); } ds.sendDeviceInfo(dev, map); }
private void buttonX1_Click(object sender, EventArgs e) { map.Clear(); String ip = this.txtIp.Text; if (ip != "") { map.Add(PARAM_IP, ip); } String port = this.txtPort.Text; if (ip != "") { map.Add(PARAM_PORT, port); } ds.sendDeviceInfo(dev, map); }
private void buttonX1_Click(object sender, EventArgs e) { map.Clear(); String stime = this.txtColTime.Text; if (stime != "") { map.Add(PARAM_STIME, stime); } String itr = this.txtIntr.Text; if (itr != "") { map.Add(PARAM_ITRL, itr); } String cnt = this.txtCnt.Text; if (cnt != "") { map.Add(PARAM_CNT, cnt); } String rept = this.txtRept.Text; if (rept != "") { map.Add(PARAM_REPT, rept); } // ds.wakeUpCasicDev(dev); bool isSuccess = ds.sendDeviceInfo(dev, map); if (!isSuccess) { MessageBox.Show("设备未唤醒,请重新下发"); } }
private void btnSetting_Click(object sender, EventArgs e) { map.Clear(); String stime = this.txtTime.Text; if (stime != "") { map.Add(PARAM_PERIOD, stime); } else { MessageBox.Show("有害气体配置周期不能为空:"); return; } bool isSuccess = ds.sendDeviceInfo(dev, map); if (isSuccess) { MessageBox.Show("有害气体配置下发成功"); } }