Exemple #1
0
        private async void button_Get_Click(object sender, EventArgs e)
        {
            m_PowerControl = new PowerControl();
            PowerIPConfigInfo vPowerIPConfigInfo = await m_PowerControl.SendCMD_GetIP(DianYuanID);

            textBox_GateWay.Text           = vPowerIPConfigInfo.Gateway;
            textBox_IPAddress.Text         = vPowerIPConfigInfo.IPAddress;
            checkBox_DHCP.Checked          = vPowerIPConfigInfo.IsDHCP;
            numericUpDown_ServerPort.Value = vPowerIPConfigInfo.ServerPort;
            textBox_ServerIP.Text          = vPowerIPConfigInfo.ServerIPAddress;
            textBox_SubMask.Text           = vPowerIPConfigInfo.SubMask;
        }