private void NODESearchForm_Load(object sender, EventArgs e) { addData(); string ip4 = XWUtils.GetAddressIP(); textBox2.Text = ip4; SetDataResuleView.getInstance().setLanINterface(this); }
private void closeSerPortUtil() { SetDataResuleView.getInstance().clear(); if (cdInterface == null) { return; } cdInterface.close(); cdInterface.classClose(); cdInterface = null; }
/// <summary> /// 默认设置一些值 /// </summary> private void DefaultState() { string ip4 = XWUtils.GetAddressIP(); textBox2.Text = ip4; SetDataResuleView.getInstance().setLanINterface(this); if (comboBox2.Items.Count > 0) { comboBox2.SelectedItem = comboBox2.Items[0]; } if (comboBox3.Items.Count > 0) { comboBox3.SelectedItem = comboBox3.Items[0]; } }
/// <summary> /// 成功返回结果显示 /// </summary> private void retuViewVisi(byte[] ID, DataPacketType dpType, Label lab) { DP_TYPE_LABEL dpLabel = new DP_TYPE_LABEL(dpType, lab); SetDataResuleView.getInstance().returnSuccess(dpLabel); }
/// <summary> /// 设置结果显示 /// </summary> private void setViewVisi(DataPacketType dpType, Label lab) { DP_TYPE_LABEL dpLabel = new DP_TYPE_LABEL(dpType, lab); SetDataResuleView.getInstance().insertSet(dpLabel); }