Ejemplo n.º 1
0
        private void NODESearchForm_Load(object sender, EventArgs e)
        {
            addData();
            string ip4 = XWUtils.GetAddressIP();

            textBox2.Text = ip4;
            SetDataResuleView.getInstance().setLanINterface(this);
        }
Ejemplo n.º 2
0
 private void closeSerPortUtil()
 {
     SetDataResuleView.getInstance().clear();
     if (cdInterface == null)
     {
         return;
     }
     cdInterface.close();
     cdInterface.classClose();
     cdInterface = null;
 }
Ejemplo n.º 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];
            }
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }