/// <summary> /// 初始化监控设备表 /// </summary> private void InitDbgMonitor() { dat = MonitorMgr.GetAll(); dv = new DataView(dat); if (dv != null) { this.dbgMonitor.DataSource = dv; } }
private void btnOK_Click(object sender, EventArgs e) { Monitor mt = new Monitor(); mt.MtNo = Convert.ToInt32(this.txtMtNo.Text); mt.Place = this.txtPlace.Text; mt.DoNo = Convert.ToInt32(this.txtDoNo.Text); mt.IP = this.txtIP.Text; mt.Status = this.txtStatus.Text; if (MonitorMgr.Add(mt)) { untCommon.InfoMsg("OK"); this.DialogResult = DialogResult.OK; } else { untCommon.InfoMsg("Fail"); } }
//Builder public StatusReporter(MonitorMgr callerForm) { this._ready = false; this._endThread = false; this.callerForm = callerForm; }