protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.do折叠.Click += (m, n) => this.splitContainer1.Panel1Collapsed = !this.splitContainer1.Panel1Collapsed; //this.do显示告警.Click += (m, n) => _F告警.BringToFront(); this.doFTP.Click += doFTP_Click; this.do通用访问.Click += do通用访问_Click; this.do业务状态_刷新.Click += do业务状态_刷新_Click; this.do重启.Click += do重启_Click; _IT客户端.已断开 += _IT客户端_已断开; _IB名片 = new B名片_C(_IT客户端); this.out名片.Items.Add(new ListViewItem(new string[] { "名称", _IB名片.片.称 })); this.out名片.Items.Add(new ListViewItem(new string[] { "描述", _IB名片.片.描述 })); this.out名片.Items.Add(new ListViewItem(new string[] { "版本号", _IB名片.片.版本号 })); this.out名片.Items.Add(new ListViewItem(new string[] { "版本时间", _IB名片.片.版本时间 })); _IB名片.参数列表.ForEach(k => this.out名片.Items.Add(new ListViewItem(new string[] { k.称, k.值 }))); _IB状态 = new B状态_C(_IT客户端); _IB状态.健康状态变化 += 健康状态变化; _IB系统 = new B系统_C(_IT客户端); _F告警.初始化(_IT客户端); this.out基本信息_启动时间.Text = _IB状态.启动时间.ToString(); this.do业务状态_刷新.PerformClick(); this.FormClosing += F设备详情_FormClosing; }
public void 初始化(IT客户端 __IT客户端) { _IT客户端 = __IT客户端; _IB告警 = new B状态_C(_IT客户端); _IB告警.新增了告警 += _IB告警_新增了告警; _IB告警.清除了告警 += _IB告警_清除了告警; do刷新未清除告警.PerformClick(); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); this.out告警列表.CellDoubleClick += out告警列表_CellDoubleClick; this.out告警列表.RowsAdded += out告警列表_RowsAdded; this.out状态列表.RowsAdded += out状态列表_RowsAdded; _IB名片 = new B名片_C(_IT客户端); _IB状态 = new B状态_C(_IT客户端); 刷新(); _IB状态.健康状态变化 += q => 刷新(); _IB状态.新增了告警 += _IB状态_新增了告警; _IB状态.清除了告警 += _IB状态_清除了告警; this.do刷新.Click += (sender1, e1) => 刷新(); this.outGIS服务器版本.Text = _IB名片.片.版本号; }