示例#1
0
        public MainForm()
        {
            InitializeComponent();
            PnSendCommand.Enabled = false;

            Client = new TcpAppClient();
            Client.ConnectionStatusChanged += Client_ConnectionStatusChanged;
            Client.ResponseReceived        += Client_ResponseReceived;
            Client.CommandSend             += Client_CommandSend;

            TerminalOutput.Clear();
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();
            PnSendCommand.Enabled = false;

            AppClient = new TcpAppClient();
            AppClient.ConnectionStatusChanged += Client_ConnectionStatusChanged;
            AppClient.ResponseReceived        += Client_ResponseReceived;
            AppClient.CommandSend             += Client_CommandSend;

            TcpClient = new TcpClient();
            TcpClient.ConnectionStatusChanged += Client_ConnectionStatusChanged;
            TcpClient.DataReceived            += TcpClient_DataReceived;

            CbClientType.SelectedIndex = 0;
            TerminalOutput.Clear();
        }