Пример #1
0
        private void NODESearchForm_Load(object sender, EventArgs e)
        {
            addData();
            string ip4 = XWUtils.GetAddressIP();

            textBox2.Text = ip4;
            SetDataResuleView.getInstance().setLanINterface(this);
        }
Пример #2
0
 private void closeSerPortUtil()
 {
     SetDataResuleView.getInstance().clear();
     if (cdInterface == null)
     {
         return;
     }
     cdInterface.close();
     cdInterface.classClose();
     cdInterface = null;
 }
Пример #3
0
        /// <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];
            }
        }
Пример #4
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);
        }
Пример #5
0
        /// <summary>
        /// 设置结果显示
        /// </summary>
        private void setViewVisi(DataPacketType dpType, Label lab)
        {
            DP_TYPE_LABEL dpLabel = new DP_TYPE_LABEL(dpType, lab);

            SetDataResuleView.getInstance().insertSet(dpLabel);
        }